equal
deleted
inserted
replaced
23 |
23 |
24 #include <smfpluginbase.h> |
24 #include <smfpluginbase.h> |
25 #include <smfcontact.h> |
25 #include <smfcontact.h> |
26 #include <smfpost.h> |
26 #include <smfpost.h> |
27 #include <smflocation.h> |
27 #include <smflocation.h> |
28 |
|
29 //TODO:- Moved to SmfPost as it should b common betn client n plugin |
|
30 ///** |
|
31 // * SmfPresenceInfo. |
|
32 // * Indicates the presence information of user like Online, Offline, Busy, |
|
33 // * Do no disturb, Appear Offline etc. |
|
34 // */ |
|
35 //enum SmfPresenceInfo |
|
36 // { |
|
37 // ENotSupported, |
|
38 // EOnline, |
|
39 // EOffline, |
|
40 // EBusy, |
|
41 // EDoNotDisturb, |
|
42 // EAppearOffline, |
|
43 // EOther |
|
44 // }; |
|
45 |
28 |
46 /** |
29 /** |
47 * @ingroup smf_plugin_group |
30 * @ingroup smf_plugin_group |
48 * Interface to get/update the posts to a service provider. This class |
31 * Interface to get/update the posts to a service provider. This class |
49 * provides basic functionality to allow applications to obtain list of |
32 * provides basic functionality to allow applications to obtain list of |
76 * @return Max items that can be returned in a single query |
59 * @return Max items that can be returned in a single query |
77 */ |
60 */ |
78 virtual qint32 maxItems( ) const = 0; |
61 virtual qint32 maxItems( ) const = 0; |
79 |
62 |
80 /** |
63 /** |
81 * <Method that returns all the formatting of posts that this |
64 * Method that returns all the formatting of posts that this |
82 * service provider supports. May return 0 items to mean |
65 * service provider supports. May return 0 items to mean |
83 * only QString is supported. |
66 * only QString is supported. |
84 * @return Supported formats of posts |
67 * @return Supported formats of posts |
85 */ |
68 */ |
86 virtual QVector<QTextFormat> supportedFormats ( ) const = 0; |
69 virtual QVector<QTextFormat> supportedFormats ( ) const = 0; |
162 virtual SmfPluginError postAppearence( SmfPluginRequestData &aRequest, |
145 virtual SmfPluginError postAppearence( SmfPluginRequestData &aRequest, |
163 const SmfPresenceInfo &aAppearence, |
146 const SmfPresenceInfo &aAppearence, |
164 const QString &aStatus ) = 0; |
147 const QString &aStatus ) = 0; |
165 |
148 |
166 /** |
149 /** |
167 * Share /a contact's post to user's friends and followers |
150 * Share a contact's post to user's friends and followers |
168 * (e.g. retweet in twitter, share on facebook) |
151 * (e.g. retweet in twitter, share on facebook) |
169 * @param aRequest [out] The request data to be sent to network |
152 * @param aRequest [out] The request data to be sent to network |
170 * @param aPostData data to be posted |
153 * @param aPostData data to be posted |
171 * @param aContact contact to which the post belonged |
154 * @param aContact contact to which the post belonged |
172 * @param aEdited whether user changed items within the post |
155 * @param aEdited whether user changed items within the post |