smf/smfservermodule/smfclient/smfactivityfetcher.h
changeset 25 a180113055cb
parent 18 013a02bf2bb0
equal deleted inserted replaced
24:1cee9f1b95e0 25:a180113055cb
    51 	~SmfActivityFetcher();
    51 	~SmfActivityFetcher();
    52 
    52 
    53 public slots:
    53 public slots:
    54 	/**
    54 	/**
    55 	 * Emits signal resultsAvailable() when list of activities for the user is available 
    55 	 * Emits signal resultsAvailable() when list of activities for the user is available 
       
    56 	 * @return SmfError. SmfNoError if success, else appropriate error code 
    56 	 */
    57 	 */
    57 	void selfActivities(int pageNum = SMF_FIRST_PAGE,int perPage = SMF_ITEMS_PER_PAGE);
    58 	SmfError selfActivities(int pageNum = SMF_FIRST_PAGE,int perPage = SMF_ITEMS_PER_PAGE);
    58 
    59 
    59 	/**
    60 	/**
    60 	 * Emits signal resultsAvailable() when list of activities for other contact  is available 
    61 	 * Emits signal resultsAvailable() when list of activities for other contact  is available 
       
    62 	 * @return SmfError. SmfNoError if success, else appropriate error code 
    61 	 */
    63 	 */
    62 	void friendsActivities(const SmfContact& aFriend, int pageNum = SMF_FIRST_PAGE,
    64 	SmfError friendsActivities(const SmfContact& aFriend, int pageNum = SMF_FIRST_PAGE,
    63 			int perPage = SMF_ITEMS_PER_PAGE);
    65 			int perPage = SMF_ITEMS_PER_PAGE);
    64 	
    66 	
    65 	/**
    67 	/**
    66 	 * returns only those activities (self) which are from @arg filters
    68 	 * returns only those activities (self) which are from @arg filters
       
    69 	 * @return SmfError. SmfNoError if success, else appropriate error code
    67 	 */
    70 	 */
    68 	void filtered(QList<SmfActivityObjectType> filters, int pageNum = SMF_FIRST_PAGE,
    71 	SmfError filtered(QList<SmfActivityObjectType> filters, int pageNum = SMF_FIRST_PAGE,
    69 			int perPage = SMF_ITEMS_PER_PAGE);
    72 			int perPage = SMF_ITEMS_PER_PAGE);
    70 	
    73 	
    71 	/**
    74 	/**
    72 	 * Request for a custom operation. The signal customDataAvailable() is emitted 
    75 	 * Request for a custom operation. The signal customDataAvailable() is emitted 
    73 	 * when the result is available.
    76 	 * when the result is available.
    74 	 * @param operationId OperationId
    77 	 * @param operationId OperationId
    75 	 * @param customData Custom data to be sent
    78 	 * @param customData Custom data to be sent
       
    79 	 * @return SmfError. SmfNoError if success, else appropriate error code
    76 	 * Note:-Interpretation of operationId and customData is upto the concerned
    80 	 * Note:-Interpretation of operationId and customData is upto the concerned
    77 	 * plugin and client application. service provider should provide some
    81 	 * plugin and client application. service provider should provide some
    78 	 * serializing-deserializing utilities for these custom data
    82 	 * serializing-deserializing utilities for these custom data
    79 	 */
    83 	 */
    80 	void customRequest ( const int& operationId, QByteArray* customData );
    84 	SmfError customRequest ( const int& operationId, QByteArray* customData );
       
    85 	
       
    86     /**
       
    87      * Cancels a request generated due to the call to any API which results 
       
    88      * into http request. Might return error if no request is currently pending.
       
    89      * Please note that there can be only one request pending at any point of time
       
    90      * @return Appropriate SmfError value
       
    91      */
       
    92 	SmfError cancelRequest ();
    81 
    93 
    82 signals:
    94 signals:
    83 	/**
    95 	/**
    84 	 * Signals availability of the result of the previous query
    96 	 * Signals availability of the result of the previous query
    85 	 */
    97 	 */