author | cgandhi |
Tue, 12 Oct 2010 15:23:52 +0530 | |
changeset 27 | b3e1347ac96a |
parent 6 | c39a6cfd1fb9 |
permissions | -rw-r--r-- |
6
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
1 |
#ifndef _SAMPLEPLUGIN_H |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
2 |
#define _SAMPLEPLUGIN_H |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
3 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
4 |
// Include files |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
5 |
#include <QVariant> |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
6 |
#include <qplugin.h> |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
7 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
8 |
#include "smfglobal.h" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
9 |
#include "smfpicture.h" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
10 |
#include "smfcomment.h" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
11 |
#include "smfpluginbase.h" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
12 |
#include "smfproviderbase.h" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
13 |
#include "smfgalleryplugin.h" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
14 |
#include "smfpluginutil.h" |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
15 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
16 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
17 |
// Forward declarations |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
18 |
class SampleProviderBase; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
19 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
20 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
21 |
// Class declaration |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
22 |
class SamplePlugin : public SmfGalleryPlugin |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
23 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
24 |
Q_OBJECT |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
25 |
Q_INTERFACES( SmfGalleryPlugin ) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
26 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
27 |
public: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
28 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
29 |
* Constructor with default argument |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
30 |
* @param aUtil The SmfPluginUtil instance. The plugins can |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
31 |
* call the method getAuthKeys() of this class, with its pluginID to |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
32 |
* get the OAuth keys, keys are returned only if this plugin is |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
33 |
* authorised by Smf franework |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
34 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
35 |
SamplePlugin( SmfPluginUtil *aUtil ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
36 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
37 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
38 |
* Destructor |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
39 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
40 |
~SamplePlugin( ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
41 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
42 |
public: // From SmfGalleryPlugin |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
43 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
44 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
45 |
* Method to get a list of pictures |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
46 |
* @param aRequest [out] The request data to be sent to network |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
47 |
* @param aPageNum The page to be extracted |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
48 |
* @param aItemsPerPage Number of items per page |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
49 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
50 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
51 |
SmfPluginError pictures( SmfPluginRequestData &aRequest, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
52 |
const int aPageNum = SMF_FIRST_PAGE, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
53 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
54 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
55 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
56 |
* Method to get a description |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
57 |
* @param aRequest [out] The request data to be sent to network |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
58 |
* @param aImage The image abot which the description is required |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
59 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
60 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
61 |
SmfPluginError description( SmfPluginRequestData &aRequest, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
62 |
const SmfPicture &aImage ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
63 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
64 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
65 |
* Method to upload a picture |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
66 |
* @param aRequest [out] The request data to be sent to network |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
67 |
* @param aImage The image to be uploaded |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
68 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
69 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
70 |
SmfPluginError upload( SmfPluginRequestData &aRequest, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
71 |
const SmfPicture &aImage ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
72 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
73 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
74 |
* Method to upload a list of pictures |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
75 |
* @param aRequest [out] The request data to be sent to network |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
76 |
* @param aImages The list of images to be uploaded |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
77 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
78 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
79 |
SmfPluginError upload( SmfPluginRequestData &aRequest, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
80 |
const QList<SmfPicture> &aImages ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
81 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
82 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
83 |
* Method to post comment on a picture is available |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
84 |
* @param aRequest [out] The request data to be sent to network |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
85 |
* @param aImage The image on which comment is to be posted |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
86 |
* @param aComment The comment to be posted |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
87 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
88 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
89 |
SmfPluginError postComment( SmfPluginRequestData &aRequest, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
90 |
const SmfPicture &aImage, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
91 |
const SmfComment &aComment ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
92 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
93 |
public: // From SmfPluginBase |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
94 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
95 |
* Method to get the provider information |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
96 |
* @return Instance of SmfProviderBase |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
97 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
98 |
SmfProviderBase* getProviderInfo( ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
99 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
100 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
101 |
* Method to get the result for a network request. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
102 |
* @param aTransportResult The result of transport operation |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
103 |
* @param aReply The QNetworkReply instance for the request |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
104 |
* @param aResult [out] An output parameter to the plugin manager.If the |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
105 |
* return value is SmfSendRequestAgain, QVariant will be of type |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
106 |
* SmfPluginRequestData. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
107 |
* For SmfGalleryPlugin: If last operation was pictures(), aResult will |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
108 |
* be of type QList<SmfPicture>. If last operation was description(), |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
109 |
* aResult will be of type QString. If last operation was upload() or |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
110 |
* postComment(), aResult will be of type bool. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
111 |
* @param aRetType [out] SmfPluginRetType |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
112 |
* @param aPageResult [out] The SmfResultPage structure variable |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
113 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
114 |
SmfPluginError responseAvailable( |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
115 |
const SmfTransportResult &aTransportResult, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
116 |
QNetworkReply *aReply, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
117 |
QVariant* aResult, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
118 |
SmfPluginRetType &aRetType, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
119 |
SmfResultPage &aPageResult ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
120 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
121 |
private: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
122 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
123 |
* Method called by plugins to generate a request data |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
124 |
* @param aRequest [out] The request data to be sent to network |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
125 |
* @param aOperation The type of http operation |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
126 |
* @param aSignatureMethod The signature method to be used |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
127 |
* @param aParams A map of parameters to its values |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
128 |
* @param aMode The mode of creation of the request |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
129 |
* @param aPostData The data to be posted (for HTTP POST |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
130 |
* only, else it will be NULL) |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
131 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
132 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
133 |
SmfPluginError createRequest( SmfPluginRequestData &aRequest, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
134 |
const QNetworkAccessManager::Operation aOperation, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
135 |
const SmfSignatureMethod aSignatureMethod, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
136 |
QMultiMap<QByteArray, QByteArray> &aParams, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
137 |
const SmfParsingMode aMode, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
138 |
QBuffer *aPostData ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
139 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
140 |
* Function to retrieve registration token supplied by SMF to authentication app. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
141 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
142 |
QString retrievePrivateRegToken(); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
143 |
private: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
144 |
SampleProviderBase *m_provider; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
145 |
SmfPluginUtil *m_util; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
146 |
}; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
147 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
148 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
149 |
// Class declaration |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
150 |
class SampleProviderBase : public SmfProviderBase |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
151 |
{ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
152 |
Q_OBJECT |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
153 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
154 |
public: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
155 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
156 |
* Constructor with default argument |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
157 |
* @param aParent The parent object |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
158 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
159 |
SampleProviderBase( QObject* aParent = 0 ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
160 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
161 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
162 |
* Copy Constructor |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
163 |
* @param aOther The reference object |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
164 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
165 |
SampleProviderBase( const SampleProviderBase &aOther ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
166 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
167 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
168 |
* Destructor |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
169 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
170 |
~SampleProviderBase( ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
171 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
172 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
173 |
* Method to get the Localisable name of the service. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
174 |
* @return The Localisable name of the service. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
175 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
176 |
QString serviceName( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
177 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
178 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
179 |
* Method to get the Logo of the service |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
180 |
* @return The Logo of the service |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
181 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
182 |
QImage serviceIcon( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
183 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
184 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
185 |
* Method to get the Readable service description |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
186 |
* @return The Readable service description |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
187 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
188 |
QString description( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
189 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
190 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
191 |
* Method to get the Website of the service |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
192 |
* @return The Website of the service |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
193 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
194 |
QUrl serviceUrl( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
195 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
196 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
197 |
* Method to get the URL of the Application providing this service |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
198 |
* @return The URL of the Application providing this service |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
199 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
200 |
QUrl applicationUrl( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
201 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
202 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
203 |
* Method to get the Icon of the application |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
204 |
* @return The Icon of the application |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
205 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
206 |
QImage applicationIcon( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
207 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
208 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
209 |
* Method to get the Plugin specific ID |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
210 |
* @return The Plugin specific ID |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
211 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
212 |
QString pluginId( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
213 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
214 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
215 |
* Method to get the ID of the authentication application |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
216 |
* for this service |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
217 |
* @param aProgram The authentication application name |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
218 |
* @param aArguments List of arguments required for authentication app |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
219 |
* @param aMode Strting mode for authentication application |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
220 |
* @return The ID of the authentication application |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
221 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
222 |
QString authenticationApp( QString &aProgram, QStringList & aArguments, |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
223 |
QIODevice::OpenModeFlag aMode = QIODevice::ReadWrite ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
224 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
225 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
226 |
* Method to get the unique registration ID provided by the |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
227 |
* Smf for authorised plugins |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
228 |
* @return The unique registration ID/token provided by the Smf for |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
229 |
* authorised plugins |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
230 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
231 |
QString smfRegistrationId( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
232 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
233 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
234 |
* Method to get the data usage of each plugin |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
235 |
* @return The data usage structure |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
236 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
237 |
SmfPluginDataUsage getDataUsage( ) const; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
238 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
239 |
private: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
240 |
/** |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
241 |
* Method to update the data usage of this plugin. This method is called |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
242 |
* after the plugin sends request to Plugin manager and after it receives |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
243 |
* data from plugin manager. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
244 |
* @param aBytesSent The number of bytes sent, when this argument has |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
245 |
* some value other than 1, aBytesReceived should be zero. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
246 |
* @param aBytesReceived The number of bytes received, when this argument |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
247 |
* has some value other than 1, aBytesSent should be zero. |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
248 |
* @return Returns true if success else returns false |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
249 |
*/ |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
250 |
bool updateDataUsage( const uint &aBytesSent, const uint &aBytesReceived ); |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
251 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
252 |
friend class SamplePlugin; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
253 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
254 |
private: |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
255 |
QString m_serviceName; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
256 |
QImage m_serviceIcon; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
257 |
QString m_description; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
258 |
QUrl m_serviceUrl; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
259 |
QUrl m_applicationUrl; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
260 |
QImage m_applicationIcon; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
261 |
QString m_pluginId; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
262 |
QString m_authAppId; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
263 |
QString m_smfRegToken; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
264 |
SmfPluginDataUsage m_dataUsage; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
265 |
}; |
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
266 |
|
c39a6cfd1fb9
Updating the source code for plugin manager, transport manager, smfserver and smfclient. sample plugins and tests are included
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
267 |
#endif /*_SAMPLEPLUGIN_H*/ |