author | cgandhi |
Tue, 14 Sep 2010 17:23:49 +0530 | |
changeset 21 | 74572af13dfc |
parent 14 | a469c0e6e7fb |
child 25 | a180113055cb |
permissions | -rw-r--r-- |
8
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
1 |
/** |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 Sasken Communication Technologies Ltd. |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
5 |
* under the terms of the "Eclipse Public License v1.0" |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html" |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
8 |
* |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
10 |
* Chandradeep Gandhi, Sasken Communication Technologies Ltd - |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
11 |
* |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
12 |
* Contributors: |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
13 |
* Manasij Roy, Nalina Hariharan |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
14 |
* |
8
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
15 |
* Description: |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
16 |
* Interface specification for plugins that implements social activity related services |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
17 |
* |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
18 |
*/ |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
19 |
#ifndef SMFACTIVITYFETCHERPLUGIN_H_ |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
20 |
#define SMFACTIVITYFETCHERPLUGIN_H_ |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
21 |
|
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
22 |
#include <smfpluginbase.h> |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
23 |
#include <smfactions.h> |
8
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
24 |
|
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
25 |
// Forward declaration |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
26 |
class SmfContact; |
8
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
27 |
|
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
28 |
/** |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
29 |
* @ingroup smf_plugin_group |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
30 |
* Interface specification for fetching social activity list for a user. |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
31 |
* This class provides basic functionality to allow applications to obtain list of |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
32 |
* activities like "marked as favourite", "commented on a picture" etc in a |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
33 |
* social networking service. |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
34 |
* |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
35 |
* All of the functionality described here should be implemented by a service |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
36 |
* specific plug-in. |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
37 |
*/ |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
38 |
class SmfActivityFetcherPlugin : public SmfPluginBase |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
39 |
{ |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
40 |
public: |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
41 |
/** |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
42 |
* Destructor |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
43 |
*/ |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
44 |
virtual ~SmfActivityFetcherPlugin( ) {} |
8
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
45 |
|
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
46 |
/** |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
47 |
* Method to get the list of self activities, e.g. shown in own wall |
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
48 |
* @param aRequest [out] The request data that plugin generates (to be sent to network) |
8
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
49 |
* @param aPageNum[in] The page to be extracted |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
50 |
* @param aItemsPerPage[in] Number of items per page |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
51 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
52 |
*/ |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
53 |
virtual SmfPluginError selfActivities( SmfPluginRequestData &aRequest, |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
54 |
const int aPageNum = SMF_FIRST_PAGE, |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
55 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
56 |
|
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
57 |
/** |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
58 |
* Method to get the list of activities for other, e.g. shown in a friends wall |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
59 |
* @param aRequest [out] The request data plugin generated (to be sent to network) |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
60 |
* @param aContact [in] The contact containing the URI, name or id of the user |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
61 |
* @param aPageNum[in] The page to be extracted |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
62 |
* @param aItemsPerPage[in] Number of items per page |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
63 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
64 |
*/ |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
65 |
virtual SmfPluginError friendsActivities( SmfPluginRequestData &aRequest, |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
66 |
const SmfContact &aContact, |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
67 |
const int aPageNum = SMF_FIRST_PAGE, |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
68 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
69 |
|
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
70 |
/** |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
71 |
* Method to get list of self activities filtered by activity type, e.g. only photo updates in own wall |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
72 |
* @param aRequest [out] The request data plugin generated (to be sent to network) |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
73 |
* @param aFilters [in] The list of activity types to be included in result |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
74 |
* @param aPageNum[in] The page to be extracted |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
75 |
* @param aItemsPerPage[in] Number of items per page |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
76 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
77 |
*/ |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
78 |
virtual SmfPluginError filtered( SmfPluginRequestData &aRequest, |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
79 |
QList<SmfActivityObjectType> &aFilters, |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
80 |
const int aPageNum = SMF_FIRST_PAGE, |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
81 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
82 |
|
14
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
83 |
/** |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
84 |
* Customised method for SmfActivityFetcherPlugin interface |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
85 |
* @param aRequest [out] The request data to be sent to network |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
86 |
* @param aOperation The operation type (should be known between |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
87 |
* the client interface and the plugin) |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
88 |
* @param aData The data required to form the request (The type |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
89 |
* of data should be known between client and the plugin) |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
90 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
91 |
*/ |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
92 |
virtual SmfPluginError customRequest( SmfPluginRequestData &aRequest, |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
93 |
const int &aOperation, QByteArray *aData ) = 0; |
a469c0e6e7fb
changes for SmfPost, SmfCredentialMgr, PLuginManager, SmfServer. Adding Sample Plugins and Sample Client Applications.
cgandhi <chandradeep.gandhi@sasken.com>
parents:
8
diff
changeset
|
94 |
|
8
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
95 |
}; |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
96 |
|
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
97 |
Q_DECLARE_INTERFACE( SmfActivityFetcherPlugin, "org.symbian.smf.plugin.activity.fetcher/v0.2" ); |
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
98 |
|
4102c67b6e56
Restoring the missing activity related and music headers
cgandhi <chandradeep.gandhi@sasken.com>
parents:
diff
changeset
|
99 |
#endif /* SMFACTIVITYFETCHERPLUGIN_H_ */ |