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