equal
deleted
inserted
replaced
21 #include <QDir> |
21 #include <QDir> |
22 #include <QDebug> |
22 #include <QDebug> |
23 #include <QVariant> |
23 #include <QVariant> |
24 #ifdef Q_OS_SYMBIAN |
24 #ifdef Q_OS_SYMBIAN |
25 #include <xqaiwinterfacedescriptor.h> |
25 #include <xqaiwinterfacedescriptor.h> |
|
26 #include <xqaiwdecl.h> |
26 #endif // Q_OS_SYMBIAN |
27 #endif // Q_OS_SYMBIAN |
27 |
|
28 namespace |
|
29 { |
|
30 const char gFetcherInterface[] = "image"; |
|
31 const char gFetcherOperation[] = "fetch(QVariantMap,QVariant)"; |
|
32 } |
|
33 |
28 |
34 #ifdef COVERAGE_MEASUREMENT |
29 #ifdef COVERAGE_MEASUREMENT |
35 #pragma CTC SKIP |
30 #pragma CTC SKIP |
36 #endif //COVERAGE_MEASUREMENT |
31 #endif //COVERAGE_MEASUREMENT |
|
32 |
|
33 |
|
34 /*! |
|
35 \class HsImageFetcherClient |
|
36 \ingroup group_hsutils |
|
37 \brief |
|
38 */ |
37 |
39 |
38 // --------------------------------------------------------------------------- |
40 // --------------------------------------------------------------------------- |
39 // --------------------------------------------------------------------------- |
41 // --------------------------------------------------------------------------- |
40 // |
42 // |
41 #ifdef Q_OS_SYMBIAN |
43 #ifdef Q_OS_SYMBIAN |
72 if (mReq) { |
74 if (mReq) { |
73 delete mReq; |
75 delete mReq; |
74 mReq = 0; |
76 mReq = 0; |
75 } |
77 } |
76 |
78 |
77 mReq = mAppMgr.create(gFetcherInterface, gFetcherOperation, false); |
79 mReq = mAppMgr.create(XQI_IMAGE_FETCH, XQOP_IMAGE_FETCH, false); |
78 if (mReq) { |
80 if (mReq) { |
79 QList<QVariant> args; |
|
80 args << QVariantMap(); |
|
81 args << QVariant(); |
|
82 mReq->setArguments(args); |
|
83 // Connect signals once |
|
84 connect(mReq, SIGNAL(requestOk(const QVariant&)), this, SLOT(handleOk(const QVariant&))); |
81 connect(mReq, SIGNAL(requestOk(const QVariant&)), this, SLOT(handleOk(const QVariant&))); |
85 connect(mReq, SIGNAL(requestError(int,const QString&)), this, SLOT(handleError(int,const QString&))); |
82 connect(mReq, SIGNAL(requestError(int,const QString&)), this, SLOT(handleError(int,const QString&))); |
86 } else { |
83 } else { |
87 qCritical() << "HsImageFetcherClient::fetch -> Create request failed"; |
84 qCritical() << "HsImageFetcherClient::fetch -> Create request failed"; |
88 return; |
85 return; |