main/glxaiwservicehandler.h
changeset 41 ae07d189b490
parent 26 c499df2dbb33
child 44 aa2fa096cbfb
--- a/main/glxaiwservicehandler.h	Mon May 03 00:53:50 2010 +0530
+++ b/main/glxaiwservicehandler.h	Mon May 03 16:56:16 2010 +0530
@@ -34,6 +34,9 @@
 class GlxImageViewerService;
 class GlxStateManager;
 class CGlxImageViewerManager;
+class GlxGetImageServiceNSDI;
+class GlxGetImageServiceDSDI;
+
 /**
  *  GlxAiwServiceHandler
  * 
@@ -64,11 +67,14 @@
 private:
     GlxMediaModel *mModel;
     GlxView* mView;
-    GlxGetImageService* mService;
-	GlxImageViewerService* mImageViewerService;
 	GlxStateManager *mStateMgr;
 	GlxView* mFSView;
     HbMenu *mFetcherContextMenu;
+
+    GlxGetImageService* mFetcherService;
+    GlxGetImageServiceNSDI* mNSDIService;
+    GlxGetImageServiceDSDI* mDSDIService;
+    GlxImageViewerService* mImageViewerService;
     };
 
 /**
@@ -85,6 +91,61 @@
     void complete( QStringList filesList);
     
 public slots://for QTHighway to notify provider about request
+    void fetch();
+    
+public slots://for provider to notify client
+    void fetchFailed( int errorCode );
+    
+private:
+    void doComplete( QStringList filesList);
+    
+private:
+    int mImageRequestIndex;
+    GlxAiwServiceHandler* mServiceApp;
+};
+
+/**
+ *  GlxGetImageServiceDSDI
+ *  Service provide for new service and depricated interface
+ */ 
+class GlxGetImageServiceNSDI : public XQServiceProvider
+{
+    Q_OBJECT
+public:
+    GlxGetImageServiceNSDI( GlxAiwServiceHandler *parent = 0 );
+    ~GlxGetImageServiceNSDI();
+    bool isActive();
+    void complete( QStringList filesList);
+    
+public slots://for QTHighway to notify provider about request
+    void fetch( QVariantMap filter , QVariant flag );
+    void fetch();
+    
+public slots://for provider to notify client
+    void fetchFailed( int errorCode );
+    
+private:
+    void doComplete( QStringList filesList);
+    
+private:
+    int mImageRequestIndex;
+    GlxAiwServiceHandler* mServiceApp;
+};
+
+/**
+ *  GlxGetImageServiceDSDI
+ *  Service provide for depricated service and depricated interface
+ */ 
+class GlxGetImageServiceDSDI : public XQServiceProvider
+{
+    Q_OBJECT
+public:
+    GlxGetImageServiceDSDI( GlxAiwServiceHandler *parent = 0 );
+    ~GlxGetImageServiceDSDI();
+    bool isActive();
+    void complete( QStringList filesList);
+    
+public slots://for QTHighway to notify provider about request
     void fetch( QVariantMap filter, QVariant flag);
     
 public slots://for provider to notify client