--- a/contactwidgethsplugin/contactwidgeths/inc/commlauncherwidget.h Mon Aug 23 16:06:28 2010 +0300
+++ b/contactwidgethsplugin/contactwidgeths/inc/commlauncherwidget.h Fri Sep 03 14:32:33 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)
};