homescreenapp/hsutils/inc/hsimagehandlingclient.h
changeset 90 3ac3aaebaee5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreenapp/hsutils/inc/hsimagehandlingclient.h	Mon Sep 20 10:19:07 2010 +0300
@@ -0,0 +1,64 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+#ifndef HSIMAGEHANDLINGCLIENT_H
+#define HSIMAGEHANDLINGCLIENT_H
+
+#include <QObject>
+
+#ifdef Q_OS_SYMBIAN
+#include <xqaiwrequest.h>
+#include <xqappmgr.h>
+#endif // Q_OS_SYMBIAN
+
+#include "hsutils_global.h"
+
+class HSUTILS_EXPORT HsImageHandlingClient : public QObject
+{
+    Q_OBJECT
+    
+public:
+    HsImageHandlingClient(QObject *parent = 0);
+    ~HsImageHandlingClient();
+    
+public slots:
+    void fetch();
+    void edit(const QString &imagePath);
+    
+private slots: 
+    // Aiw request responses
+    void handleOk(const QVariant &result);
+    void handleError(int errorCode, const QString &errorMessage);
+    void handleEditorOk(const QVariant& result);
+    void handleEditorError(int errorCode, const QString &errorMessage);
+
+signals:
+    void fetchCompleted(const QString &imageFile);
+    void fetchFailed(int errorCode, const QString &errorMessage);
+    void editorCompleted();
+    void editorFailed(int errorCode, const QString &errorMessage);
+
+private:
+    Q_DISABLE_COPY(HsImageHandlingClient)
+
+#ifdef Q_OS_SYMBIAN
+    XQApplicationManager mAppMgr;                
+    XQAiwRequest *mReq;
+#endif // Q_OS_SYMBIAN
+};
+
+#endif // HSIMAGEHANDLINGCLIENT_H