author | ulf69 <ulf69> | 2004-08-17 00:15:05 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-17 00:15:05 (UTC) |
commit | 7d15927b7e7957a80da335587598e7b62dece1a4 (patch) (unidiff) | |
tree | 607b15062fa09b278c764afbc221736a68dbd2c8 /korganizer/koeditordetails.h | |
parent | f3875aba68f175e8da32462f64b12fc46bc31102 (diff) | |
download | kdepimpi-7d15927b7e7957a80da335587598e7b62dece1a4.zip kdepimpi-7d15927b7e7957a80da335587598e7b62dece1a4.tar.gz kdepimpi-7d15927b7e7957a80da335587598e7b62dece1a4.tar.bz2 |
added listener to access Ka/pi via QCop
Diffstat (limited to 'korganizer/koeditordetails.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeditordetails.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/korganizer/koeditordetails.h b/korganizer/koeditordetails.h index 930b296..0cc807f 100644 --- a/korganizer/koeditordetails.h +++ b/korganizer/koeditordetails.h | |||
@@ -14,24 +14,25 @@ | |||
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef _KOEDITORDETAILS_H | 23 | #ifndef _KOEDITORDETAILS_H |
24 | #define _KOEDITORDETAILS_H | 24 | #define _KOEDITORDETAILS_H |
25 | 25 | ||
26 | #include <qmap.h> | ||
26 | #include <qframe.h> | 27 | #include <qframe.h> |
27 | #include <qlabel.h> | 28 | #include <qlabel.h> |
28 | #include <qcheckbox.h> | 29 | #include <qcheckbox.h> |
29 | #include <qpushbutton.h> | 30 | #include <qpushbutton.h> |
30 | #include <qgroupbox.h> | 31 | #include <qgroupbox.h> |
31 | #include <qlineedit.h> | 32 | #include <qlineedit.h> |
32 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
33 | #include <qmultilineedit.h> | 34 | #include <qmultilineedit.h> |
34 | #include <klistview.h> | 35 | #include <klistview.h> |
35 | #include <qradiobutton.h> | 36 | #include <qradiobutton.h> |
36 | #include <qptrlist.h> | 37 | #include <qptrlist.h> |
37 | 38 | ||
@@ -61,24 +62,28 @@ class KOEditorDetails : public QWidget | |||
61 | /** Read event object and setup widgets accordingly */ | 62 | /** Read event object and setup widgets accordingly */ |
62 | void readEvent(Incidence *); | 63 | void readEvent(Incidence *); |
63 | /** Write event settings to event object */ | 64 | /** Write event settings to event object */ |
64 | void writeEvent(Incidence *); | 65 | void writeEvent(Incidence *); |
65 | 66 | ||
66 | /** return a clone of the event with attendees to be canceld*/ | 67 | /** return a clone of the event with attendees to be canceld*/ |
67 | void cancelAttendeeEvent(Incidence *); | 68 | void cancelAttendeeEvent(Incidence *); |
68 | /** Check if the input is valid. */ | 69 | /** Check if the input is valid. */ |
69 | bool validateInput(); | 70 | bool validateInput(); |
70 | 71 | ||
71 | public slots: | 72 | public slots: |
72 | void insertAttendee(Attendee *); | 73 | void insertAttendee(Attendee *); |
74 | // called when the app recieves a list of name/email/uid (=addresses) from another app. Usually Ka/Pi | ||
75 | // The first parameter is a uniqueid. It can be used to identify if event | ||
76 | void insertAttendees(const QString&, const QStringList& namelist, const QStringList& emaillist, const QStringList& uidlist); | ||
77 | |||
73 | 78 | ||
74 | protected slots: | 79 | protected slots: |
75 | void addNewAttendee(); | 80 | void addNewAttendee(); |
76 | void removeAttendee(); | 81 | void removeAttendee(); |
77 | void openAddressBook(); | 82 | void openAddressBook(); |
78 | void updateAttendeeInput(); | 83 | void updateAttendeeInput(); |
79 | void clearAttendeeInput(); | 84 | void clearAttendeeInput(); |
80 | void fillAttendeeInput(AttendeeListItem *); | 85 | void fillAttendeeInput(AttendeeListItem *); |
81 | void updateAttendeeItem(); | 86 | void updateAttendeeItem(); |
82 | void setEnabledAttendeeInput(bool); | 87 | void setEnabledAttendeeInput(bool); |
83 | 88 | ||
84 | private: | 89 | private: |
@@ -87,17 +92,17 @@ class KOEditorDetails : public QWidget | |||
87 | QLineEdit *mNameEdit; | 92 | QLineEdit *mNameEdit; |
88 | QLineEdit *mUidEdit; | 93 | QLineEdit *mUidEdit; |
89 | QLineEdit *mEmailEdit; | 94 | QLineEdit *mEmailEdit; |
90 | KListView *mListView; | 95 | KListView *mListView; |
91 | QComboBox* mRoleCombo; | 96 | QComboBox* mRoleCombo; |
92 | QCheckBox* mRsvpButton; | 97 | QCheckBox* mRsvpButton; |
93 | QComboBox* mStatusCombo; | 98 | QComboBox* mStatusCombo; |
94 | QLabel *mOrganizerLabel; | 99 | QLabel *mOrganizerLabel; |
95 | 100 | ||
96 | QPushButton* mAddButton; | 101 | QPushButton* mAddButton; |
97 | QPushButton* mRemoveButton; | 102 | QPushButton* mRemoveButton; |
98 | QPushButton* mAddressBookButton; | 103 | QPushButton* mAddressBookButton; |
99 | 104 | ||
100 | QPtrList<Attendee> mdelAttendees; | 105 | QPtrList<Attendee> mdelAttendees; |
101 | }; | 106 | }; |
102 | 107 | ||
103 | #endif | 108 | #endif |