homescreenapp/hsutils/inc/hsimagefetcherclient.h
changeset 90 3ac3aaebaee5
parent 86 e4f038c420f7
child 94 6364b99b9e27
child 95 32e56106abf2
equal deleted inserted replaced
86:e4f038c420f7 90:3ac3aaebaee5
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSIMAGEFETCHERCLIENT_H
       
    19 #define HSIMAGEFETCHERCLIENT_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #ifdef Q_OS_SYMBIAN
       
    24 #include <xqaiwrequest.h>
       
    25 #include <xqappmgr.h>
       
    26 #endif // Q_OS_SYMBIAN
       
    27 
       
    28 #include "hsutils_global.h"
       
    29 
       
    30 class HSUTILS_EXPORT HsImageFetcherClient : public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33     
       
    34 public:
       
    35     HsImageFetcherClient(QObject *parent = 0);
       
    36     ~HsImageFetcherClient();
       
    37     
       
    38 public slots:
       
    39     void fetch();
       
    40     
       
    41 private slots: 
       
    42     // Aiw request responses
       
    43     void handleOk(const QVariant &result);
       
    44     void handleError(int errorCode, const QString &errorMessage);
       
    45 
       
    46 signals:
       
    47     void fetchCompleted(const QString &imageFile);
       
    48     void fetchFailed(int errorCode, const QString &errorMessage);
       
    49 
       
    50 private:
       
    51     Q_DISABLE_COPY(HsImageFetcherClient)
       
    52 
       
    53 #ifdef Q_OS_SYMBIAN
       
    54     XQApplicationManager mAppMgr;                
       
    55     XQAiwRequest *mReq;
       
    56 #endif // Q_OS_SYMBIAN
       
    57 };
       
    58 
       
    59 #endif // HSIMAGEFETCHERCLIENT_H