equal
deleted
inserted
replaced
23 #include <QObject> |
23 #include <QObject> |
24 #include <QKeyEvent> |
24 #include <QKeyEvent> |
25 #include <QGraphicsSceneResizeEvent> |
25 #include <QGraphicsSceneResizeEvent> |
26 #include "cntglobal.h" |
26 #include "cntglobal.h" |
27 #include <cntmaptileservice.h> |
27 #include <cntmaptileservice.h> |
|
28 #include <xqappmgr.h> |
28 |
29 |
29 class HbView; |
30 class HbView; |
30 class HbScrollArea; |
31 class HbScrollArea; |
31 class CntDocumentLoader; |
32 class CntDocumentLoader; |
32 class HbAction; |
33 class HbAction; |
45 class QStandardItemModel; |
46 class QStandardItemModel; |
46 class QModelIndex; |
47 class QModelIndex; |
47 class HbSelectionDialog; |
48 class HbSelectionDialog; |
48 class CntPresenceListener; |
49 class CntPresenceListener; |
49 class HbLabel; |
50 class HbLabel; |
|
51 class XQAiwRequest; |
50 |
52 |
51 QTM_BEGIN_NAMESPACE |
53 QTM_BEGIN_NAMESPACE |
52 class QContact; |
54 class QContact; |
53 class QContactManager; |
55 class QContactManager; |
54 class QContactDetail; |
56 class QContactDetail; |
77 { |
79 { |
78 Q_OBJECT |
80 Q_OBJECT |
79 Q_DECLARE_PUBLIC(CntContactCardView) |
81 Q_DECLARE_PUBLIC(CntContactCardView) |
80 |
82 |
81 public: |
83 public: |
82 CntContactCardViewPrivate(); |
84 CntContactCardViewPrivate(bool isTemporary); |
83 virtual ~CntContactCardViewPrivate(); |
85 virtual ~CntContactCardViewPrivate(); |
84 |
86 |
85 public slots: |
87 public slots: |
86 void onItemActivated(); |
88 void onItemActivated(); |
87 void editContact(); |
89 void editContact(); |
89 void onLongPressed(const QPointF &aCoords); |
91 void onLongPressed(const QPointF &aCoords); |
90 void setPreferredAction(const QString &aAction, const QContactDetail &aDetail, CntContactCardDetailItem *aDetailItem); |
92 void setPreferredAction(const QString &aAction, const QContactDetail &aDetail, CntContactCardDetailItem *aDetailItem); |
91 void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error); |
93 void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error); |
92 void drawMenu(const QPointF &aCoords); |
94 void drawMenu(const QPointF &aCoords); |
93 void sendToHs(); |
95 void sendToHs(); |
|
96 void onAddedToContacts(); |
94 void mapTileStatusReceived(int contactid, int addressType, int status); |
97 void mapTileStatusReceived(int contactid, int addressType, int status); |
95 void keyPressed(QKeyEvent *event); |
98 void keyPressed(QKeyEvent *event); |
96 |
99 |
97 private slots: |
100 private slots: |
98 void sendBusinessCard(); |
101 void sendBusinessCard(); |
104 void actionExecuted(CntActionLauncher* aAction); |
107 void actionExecuted(CntActionLauncher* aAction); |
105 void setOrientation(Qt::Orientation orientation); |
108 void setOrientation(Qt::Orientation orientation); |
106 void showPreviousView(); |
109 void showPreviousView(); |
107 void doChangeImage(); |
110 void doChangeImage(); |
108 void doRemoveImage(); |
111 void doRemoveImage(); |
|
112 void showRootView(); |
109 |
113 |
110 void handleMenuAction(HbAction* aAction); |
114 void handleMenuAction(HbAction* aAction); |
111 void handleSendBusinessCard( HbAction* aAction ); |
115 void handleSendBusinessCard( HbAction* aAction ); |
112 void executeAction(QContact& aContact, const QContactDetail& aDetail, const QString& aAction); |
116 void executeAction(QContact& aContact, const QContactDetail& aDetail, const QString& aAction); |
113 void sendKeyCancelSlot(); |
117 void sendKeyCancelSlot(); |
|
118 void contactDeletedFromOtherSource(const QList<QContactLocalId>& contactIds); |
114 |
119 |
115 #ifdef PBK_UNIT_TEST |
120 #ifdef PBK_UNIT_TEST |
116 public slots: |
121 public slots: |
117 #else |
122 #else |
118 private slots: |
123 private slots: |
136 |
141 |
137 signals: |
142 signals: |
138 void preferredUpdated(); |
143 void preferredUpdated(); |
139 void backPressed(); |
144 void backPressed(); |
140 void viewActivated(CntAbstractViewManager* aMgr, const CntViewParameters aArgs); |
145 void viewActivated(CntAbstractViewManager* aMgr, const CntViewParameters aArgs); |
141 |
146 void addToContacts(); |
142 |
147 |
143 #ifdef PBK_UNIT_TEST |
148 #ifdef PBK_UNIT_TEST |
144 public: |
149 public: |
145 #else |
150 #else |
146 private: |
151 private: |
173 int mFavoriteGroupId; |
178 int mFavoriteGroupId; |
174 CntDocumentLoader *mLoader; |
179 CntDocumentLoader *mLoader; |
175 QContactAction *mContactAction; |
180 QContactAction *mContactAction; |
176 HbAction *mBackKey; |
181 HbAction *mBackKey; |
177 CntImageLabel *mImageLabel; |
182 CntImageLabel *mImageLabel; |
|
183 XQApplicationManager mAppManager; |
178 XQServiceRequest *mHighwayService; |
184 XQServiceRequest *mHighwayService; |
|
185 XQAiwRequest *mRequest; // own |
179 HbIcon *mVCardIcon; |
186 HbIcon *mVCardIcon; |
180 CntViewParameters mArgs; |
187 CntViewParameters mArgs; |
181 ShareUi *mShareUi; |
188 ShareUi *mShareUi; |
182 bool mAcceptSendKey; |
189 bool mAcceptSendKey; |
183 QStandardItemModel* mSendKeyListModel; |
190 QStandardItemModel* mSendKeyListModel; |
185 CntPresenceListener* mPresenceListener; // own |
192 CntPresenceListener* mPresenceListener; // own |
186 CntMapTileService *mMaptile; |
193 CntMapTileService *mMaptile; |
187 QTimer *mProgressTimer; |
194 QTimer *mProgressTimer; |
188 QList <CntContactCardMapTileDetail*> mAddressList; |
195 QList <CntContactCardMapTileDetail*> mAddressList; |
189 QMap <int, HbLabel*> mMaptileLabelList; |
196 QMap <int, HbLabel*> mMaptileLabelList; |
|
197 bool mIsTemporary; |
|
198 bool mIsExecutingAction; |
190 }; |
199 }; |
191 |
200 |
192 #endif // CNTCOMMLAUNCHERVIEW_H |
201 #endif // CNTCOMMLAUNCHERVIEW_H |
193 |
202 |
194 // EOF |
203 // EOF |