17 |
17 |
18 #ifndef CNTGROUPMEMBERVIEW_H |
18 #ifndef CNTGROUPMEMBERVIEW_H |
19 #define CNTGROUPMEMBERVIEW_H |
19 #define CNTGROUPMEMBERVIEW_H |
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
|
22 #include <QList> |
22 #include <hbdocumentloader.h> |
23 #include <hbdocumentloader.h> |
23 |
24 |
24 #include <cntabstractview.h> |
25 #include <cntabstractview.h> |
25 |
26 |
26 class MobCntModel; |
27 class MobCntModel; |
27 class CntAbstractViewManager; |
28 class CntAbstractViewManager; |
28 class CntContactCardHeadingItem; |
29 class CntContactCardHeadingItem; |
|
30 class CntFetchContacts; |
29 class HbView; |
31 class HbView; |
30 class HbAction; |
32 class HbAction; |
31 class HbListView; |
33 class HbListView; |
32 class HbAbstractViewItem; |
34 class HbAbstractViewItem; |
33 class ThumbnailManager; |
35 class ThumbnailManager; |
63 |
65 |
64 private slots: |
66 private slots: |
65 void showPreviousView(); |
67 void showPreviousView(); |
66 void openGroupActions(); |
68 void openGroupActions(); |
67 void manageMembers(); |
69 void manageMembers(); |
|
70 void handleManageMembers(); |
68 void editGroup(); |
71 void editGroup(); |
69 void deleteGroup(); |
72 void deleteGroup(); |
|
73 void handleDeleteGroup(HbAction *action); |
|
74 |
70 void showContextMenu(HbAbstractViewItem *item, const QPointF &coords); |
75 void showContextMenu(HbAbstractViewItem *item, const QPointF &coords); |
|
76 void handleMenu(HbAction* action); |
|
77 |
|
78 |
71 void showContactView(const QModelIndex &index); |
79 void showContactView(const QModelIndex &index); |
72 void removeFromGroup(const QModelIndex &index); |
80 void removeFromGroup(const QModelIndex &index); |
73 void editContact(const QModelIndex &index); |
81 void editContact(const QModelIndex &index); |
74 void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error); |
82 void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error); |
75 void openImageEditor(); |
83 void openImageEditor(); |
|
84 |
|
85 void drawImageMenu(const QPointF &aCoords); |
|
86 void handleImageMenu(HbAction* action); |
|
87 |
|
88 private: |
|
89 void changeImage(); |
|
90 void removeImage(); |
|
91 |
|
92 private: |
|
93 QContactManager* getContactManager(); |
76 |
94 |
77 private: |
95 private: |
78 QContact* mGroupContact; // own |
96 QContact* mGroupContact; // own |
79 CntAbstractViewManager* mViewManager; |
97 CntAbstractViewManager* mViewManager; |
80 HbDocumentLoader mDocumentLoader; |
98 HbDocumentLoader mDocumentLoader; |
88 HbAction* mEditGroupAction; // owned by view |
106 HbAction* mEditGroupAction; // owned by view |
89 MobCntModel* mModel; // own |
107 MobCntModel* mModel; // own |
90 CntImageLabel* mImageLabel; |
108 CntImageLabel* mImageLabel; |
91 HbListView* mListView; // owned by layout |
109 HbListView* mListView; // owned by layout |
92 HbDocumentLoader* mDocument; |
110 HbDocumentLoader* mDocument; |
|
111 CntFetchContacts* mFetchView; |
|
112 QList<QContactLocalId> mOriginalGroupMembers; |
|
113 bool mIsPreviousImageEditorView; |
|
114 QContactAvatar* mAvatar; |
93 }; |
115 }; |
94 |
116 |
95 #endif // CNTGROUPMEMBERVIEW_H |
117 #endif // CNTGROUPMEMBERVIEW_H |
96 |
118 |
97 // EOF |
119 // EOF |