phonebookui/pbkcommonui/inc/cntcontactcardview_p.h
changeset 53 e6aff7b69165
parent 50 77bc263e1626
child 54 47627ab5d7a4
--- a/phonebookui/pbkcommonui/inc/cntcontactcardview_p.h	Wed Jul 21 11:37:51 2010 +0300
+++ b/phonebookui/pbkcommonui/inc/cntcontactcardview_p.h	Fri Jul 23 12:43:48 2010 +0300
@@ -25,6 +25,7 @@
 #include <QGraphicsSceneResizeEvent>
 #include "cntglobal.h"
 #include <cntmaptileservice.h>
+#include <xqappmgr.h>
 
 class HbView;
 class HbScrollArea;
@@ -47,6 +48,7 @@
 class HbSelectionDialog;
 class CntPresenceListener;
 class HbLabel;
+class XQAiwRequest;
 
 QTM_BEGIN_NAMESPACE
 class QContact;
@@ -79,7 +81,7 @@
     Q_DECLARE_PUBLIC(CntContactCardView)
 
 public:
-    CntContactCardViewPrivate();
+    CntContactCardViewPrivate(bool isTemporary);
     virtual ~CntContactCardViewPrivate();    
 
 public slots:
@@ -91,6 +93,7 @@
     void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error);
     void drawMenu(const QPointF &aCoords);
     void sendToHs();
+    void onAddedToContacts();
     void mapTileStatusReceived(int contactid, int addressType, int status);
     void keyPressed(QKeyEvent *event);
 
@@ -106,11 +109,13 @@
     void showPreviousView();
     void doChangeImage();
     void doRemoveImage();
+    void showRootView();
     
     void handleMenuAction(HbAction* aAction);
     void handleSendBusinessCard( HbAction* aAction );
     void executeAction(QContact& aContact, const QContactDetail& aDetail, const QString& aAction);
     void sendKeyCancelSlot();
+    void contactDeletedFromOtherSource(const QList<QContactLocalId>& contactIds);
     
 #ifdef PBK_UNIT_TEST
 public slots:
@@ -138,7 +143,7 @@
     void preferredUpdated();
     void backPressed();
     void viewActivated(CntAbstractViewManager* aMgr, const CntViewParameters aArgs);
-
+    void addToContacts();
     
 #ifdef PBK_UNIT_TEST
 public:
@@ -175,7 +180,9 @@
     QContactAction              *mContactAction;
     HbAction                    *mBackKey;
     CntImageLabel               *mImageLabel;
+    XQApplicationManager        mAppManager;
 	XQServiceRequest            *mHighwayService;
+	XQAiwRequest                *mRequest; // own
     HbIcon                      *mVCardIcon;
     CntViewParameters           mArgs;
     ShareUi                     *mShareUi;
@@ -187,6 +194,8 @@
     QTimer                      *mProgressTimer;
     QList <CntContactCardMapTileDetail*> mAddressList;
     QMap <int, HbLabel*>        mMaptileLabelList;
+    bool                        mIsTemporary;
+    bool                        mIsExecutingAction;
 };
 
 #endif // CNTCOMMLAUNCHERVIEW_H