author | zautrix <zautrix> | 2004-08-02 00:52:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-02 00:52:35 (UTC) |
commit | 54157cb44316de72d776cfae70bdadf6c52f4773 (patch) (unidiff) | |
tree | 953c8ae225a54fc43a7298d49b08e821bf741cb9 /libkcal/incidencebase.h | |
parent | 3ebd85e83e6f9d4ac59ce1828548f7236e2b1af0 (diff) | |
download | kdepimpi-54157cb44316de72d776cfae70bdadf6c52f4773.zip kdepimpi-54157cb44316de72d776cfae70bdadf6c52f4773.tar.gz kdepimpi-54157cb44316de72d776cfae70bdadf6c52f4773.tar.bz2 |
Hack, hack, hack
-rw-r--r-- | libkcal/incidencebase.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libkcal/incidencebase.h b/libkcal/incidencebase.h index 2f85df6..e2950d3 100644 --- a/libkcal/incidencebase.h +++ b/libkcal/incidencebase.h | |||
@@ -81,98 +81,95 @@ class IncidenceBase : public CustomProperties | |||
81 | /** returns an event's starting date as a string formatted according to the | 81 | /** returns an event's starting date as a string formatted according to the |
82 | users locale settings */ | 82 | users locale settings */ |
83 | QString dtStartDateStr(bool shortfmt=true) const; | 83 | QString dtStartDateStr(bool shortfmt=true) const; |
84 | /** returns an event's starting date and time as a string formatted according | 84 | /** returns an event's starting date and time as a string formatted according |
85 | to the users locale settings */ | 85 | to the users locale settings */ |
86 | QString dtStartStr(bool shortfmt=true) const; | 86 | QString dtStartStr(bool shortfmt=true) const; |
87 | 87 | ||
88 | virtual void setDuration(int seconds); | 88 | virtual void setDuration(int seconds); |
89 | int duration() const; | 89 | int duration() const; |
90 | void setHasDuration(bool); | 90 | void setHasDuration(bool); |
91 | bool hasDuration() const; | 91 | bool hasDuration() const; |
92 | 92 | ||
93 | /** Return true or false depending on whether the incidence "floats," | 93 | /** Return true or false depending on whether the incidence "floats," |
94 | * i.e. has a date but no time attached to it. */ | 94 | * i.e. has a date but no time attached to it. */ |
95 | bool doesFloat() const; | 95 | bool doesFloat() const; |
96 | /** Set whether the incidence floats, i.e. has a date but no time attached to it. */ | 96 | /** Set whether the incidence floats, i.e. has a date but no time attached to it. */ |
97 | void setFloats(bool f); | 97 | void setFloats(bool f); |
98 | 98 | ||
99 | /** | 99 | /** |
100 | Add Attendee to this incidence. IncidenceBase takes ownership of the | 100 | Add Attendee to this incidence. IncidenceBase takes ownership of the |
101 | Attendee object. | 101 | Attendee object. |
102 | */ | 102 | */ |
103 | void addAttendee(Attendee *a, bool doupdate=true ); | 103 | void addAttendee(Attendee *a, bool doupdate=true ); |
104 | // void removeAttendee(Attendee *a); | 104 | // void removeAttendee(Attendee *a); |
105 | // void removeAttendee(const char *n); | 105 | // void removeAttendee(const char *n); |
106 | /** Remove all Attendees. */ | 106 | /** Remove all Attendees. */ |
107 | void clearAttendees(); | 107 | void clearAttendees(); |
108 | /** Return list of attendees. */ | 108 | /** Return list of attendees. */ |
109 | QPtrList<Attendee> attendees() const { return mAttendees; }; | 109 | QPtrList<Attendee> attendees() const { return mAttendees; }; |
110 | /** Return number of attendees. */ | 110 | /** Return number of attendees. */ |
111 | int attendeeCount() const { return mAttendees.count(); }; | 111 | int attendeeCount() const { return mAttendees.count(); }; |
112 | /** Return the Attendee with this email */ | 112 | /** Return the Attendee with this email */ |
113 | Attendee* attendeeByMail(const QString &); | 113 | Attendee* attendeeByMail(const QString &); |
114 | /** Return first Attendee with one of this emails */ | 114 | /** Return first Attendee with one of this emails */ |
115 | Attendee* attendeeByMails(const QStringList &, const QString& email = QString::null); | 115 | Attendee* attendeeByMails(const QStringList &, const QString& email = QString::null); |
116 | 116 | ||
117 | /** pilot syncronization states */ | 117 | /** pilot syncronization states */ |
118 | enum { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }; | 118 | enum { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }; |
119 | /** Set synchronisation satus. */ | 119 | /** Set synchronisation satus. */ |
120 | void setSyncStatus(int stat); | 120 | void setSyncStatus(int stat); |
121 | /** Return synchronisation status. */ | 121 | /** Return synchronisation status. */ |
122 | int syncStatus() const; | 122 | int syncStatus() const; |
123 | 123 | ||
124 | /** Set Pilot Id. */ | 124 | /** Set Pilot Id. */ |
125 | void setPilotId(int id); | 125 | void setPilotId(int id); |
126 | /** Return Pilot Id. */ | 126 | /** Return Pilot Id. */ |
127 | int pilotId() const; | 127 | int pilotId() const; |
128 | 128 | ||
129 | void setZaurusId(int id); | ||
130 | int zaurusId() const; | ||
131 | void setZaurusUid(int id); | 129 | void setZaurusUid(int id); |
132 | int zaurusUid() const; | 130 | int zaurusUid() const; |
133 | void setTempSyncStat(int id); | 131 | void setTempSyncStat(int id); |
134 | int tempSyncStat() const; | 132 | int tempSyncStat() const; |
135 | void setIDStr( const QString & ); | 133 | void setIDStr( const QString & ); |
136 | QString IDStr() const; | 134 | QString IDStr() const; |
137 | void setID( const QString &, int ); | 135 | void setID( const QString &, int ); |
138 | int getID( const QString & ); | 136 | int getID( const QString & ); |
139 | void setCsum( const QString &, int ); | 137 | void setCsum( const QString &, int ); |
140 | int getCsum( const QString & ); | 138 | int getCsum( const QString & ); |
141 | 139 | ||
142 | 140 | ||
143 | void registerObserver( Observer * ); | 141 | void registerObserver( Observer * ); |
144 | void unRegisterObserver( Observer * ); | 142 | void unRegisterObserver( Observer * ); |
145 | void updated(); | 143 | void updated(); |
146 | 144 | ||
147 | protected: | 145 | protected: |
148 | bool mReadOnly; | 146 | bool mReadOnly; |
149 | QDateTime getEvenTime( QDateTime ); | 147 | QDateTime getEvenTime( QDateTime ); |
150 | 148 | ||
151 | private: | 149 | private: |
152 | // base components | 150 | // base components |
153 | QDateTime mDtStart; | 151 | QDateTime mDtStart; |
154 | QString mOrganizer; | 152 | QString mOrganizer; |
155 | QString mUid; | 153 | QString mUid; |
156 | QDateTime mLastModified; | 154 | QDateTime mLastModified; |
157 | QPtrList<Attendee> mAttendees; | 155 | QPtrList<Attendee> mAttendees; |
158 | 156 | ||
159 | bool mFloats; | 157 | bool mFloats; |
160 | 158 | ||
161 | int mDuration; | 159 | int mDuration; |
162 | bool mHasDuration; | 160 | bool mHasDuration; |
163 | QString mExternalId; | 161 | QString mExternalId; |
164 | int mZaurusId; | ||
165 | int mZaurusUid; | 162 | int mZaurusUid; |
166 | int mTempSyncStat; | 163 | int mTempSyncStat; |
167 | 164 | ||
168 | // PILOT SYNCHRONIZATION STUFF | 165 | // PILOT SYNCHRONIZATION STUFF |
169 | int mPilotId; // unique id for pilot sync | 166 | int mPilotId; // unique id for pilot sync |
170 | int mSyncStatus; // status (for sync) | 167 | int mSyncStatus; // status (for sync) |
171 | 168 | ||
172 | QPtrList<Observer> mObservers; | 169 | QPtrList<Observer> mObservers; |
173 | }; | 170 | }; |
174 | 171 | ||
175 | bool operator==( const IncidenceBase&, const IncidenceBase& ); | 172 | bool operator==( const IncidenceBase&, const IncidenceBase& ); |
176 | } | 173 | } |
177 | 174 | ||
178 | #endif | 175 | #endif |