contactwidgethsplugin/contactwidgeths/inc/commlauncherwidget.h
changeset 71 7cc7d74059f9
parent 47 7cbcb2896f0e
--- a/contactwidgethsplugin/contactwidgeths/inc/commlauncherwidget.h	Thu Sep 02 20:16:15 2010 +0300
+++ b/contactwidgethsplugin/contactwidgeths/inc/commlauncherwidget.h	Fri Sep 17 08:27:32 2010 +0300
@@ -21,6 +21,8 @@
 #include <HbPopup>
 #include <qtcontacts.h>
 #include <xqaiwrequest.h>
+#include <QObjectCleanupHandler>
+#include <QScopedPointer>
 
 #include "contactwidgetplugin_global.h"
 
@@ -52,8 +54,11 @@
                                  QRectF& sceneRect, QRectF& launcherRect);
     void selectAppearEffect(QPointF FriendPos, QPointF LauncherPos);
     
+    bool isPendingRequest();
+    
 signals:
     void launcherClosed();
+    void requestCompleted();
         
 protected:
     void keyPressEvent(QKeyEvent *event);
@@ -68,10 +73,11 @@
 
     void makeCall();
     void sendMessage(); 
-    // EMAIL FUNCTIONALITY COMMENTED OUT BECAUSE PLATFORM DOES NOT SUPPORT IT!
-    //void sendEmail();
+    void sendEmail();
     void openPhonebook();
     
+    void handleRequestOk(const QVariant& value);
+    
     int commLauncherWidth();
 
 private:
@@ -80,8 +86,11 @@
     QGraphicsLinearLayout *mLayout;
     
     int mButtonCount;
+    
+    
 
     XQAiwRequest *mRequest;
+    QContactAction* mCommLauncherAction;
     
     HbPushButton *mCallButton;
     HbPushButton *mSendMsgButton;
@@ -91,6 +100,10 @@
     XQApplicationManager *mApplicationManager;
     QString mAppearEffect;
     
+    QObjectCleanupHandler mCleanupHandler;
+    
+    bool mPendingRequest;
+    
     CONTACTWIDGET_TEST_FRIEND_CLASS(TestContactWidget)
 
 };