smf/smfservermodule/smfclient/smfactivityfetcher_p.h
changeset 25 a180113055cb
parent 18 013a02bf2bb0
equal deleted inserted replaced
24:1cee9f1b95e0 25:a180113055cb
    49 	 * Destructor
    49 	 * Destructor
    50 	 */
    50 	 */
    51 	~SmfActivityFetcherPrivate();
    51 	~SmfActivityFetcherPrivate();
    52 	
    52 	
    53 	/**
    53 	/**
    54 	 * Emits signal resultsAvailable() when list of activities for the user is available 
    54 	 * Emits signal resultsAvailable() when list of activities for the user is available
       
    55 	 * @return SmfError. SmfNoError if success, else appropriate error code 
    55 	 */
    56 	 */
    56 	void selfActivities(int pageNum, int perPage);
    57 	SmfError selfActivities(int pageNum, int perPage);
    57 
    58 
    58 	/**
    59 	/**
    59 	 * Emits signal resultsAvailable() when list of activities for other contact  is available 
    60 	 * Emits signal resultsAvailable() when list of activities for other contact  is available
       
    61 	 * @return SmfError. SmfNoError if success, else appropriate error code 
    60 	 */
    62 	 */
    61 	void friendsActivities(const SmfContact& aFriend, int pageNum, int perPage);
    63 	SmfError friendsActivities(const SmfContact& aFriend, int pageNum, int perPage);
    62 	
    64 	
    63 	/**
    65 	/**
    64 	 * returns only those activities (self) which are from @arg filters
    66 	 * returns only those activities (self) which are from @arg filters
       
    67 	 * @return SmfError. SmfNoError if success, else appropriate error code
    65 	 */
    68 	 */
    66 	void filtered(QList<SmfActivityObjectType> filters, int pageNum, int perPage);
    69 	SmfError filtered(QList<SmfActivityObjectType> filters, int pageNum, int perPage);
    67 	
    70 	
    68 	/**
    71 	/**
    69 	 * Request for a custom operation. The signal customDataAvailable() is emitted 
    72 	 * Request for a custom operation. The signal customDataAvailable() is emitted 
    70 	 * when the result is available.
    73 	 * when the result is available.
    71 	 * @param operationId OperationId
    74 	 * @param operationId OperationId
    72 	 * @param customData Custom data to be sent
    75 	 * @param customData Custom data to be sent
       
    76 	 * @return SmfError. SmfNoError if success, else appropriate error code
    73 	 * Note:-Interpretation of operationId and customData is upto the concerned
    77 	 * Note:-Interpretation of operationId and customData is upto the concerned
    74 	 * plugin and client application. service provider should provide some
    78 	 * plugin and client application. service provider should provide some
    75 	 * serializing-deserializing utilities for these custom data
    79 	 * serializing-deserializing utilities for these custom data
    76 	 */
    80 	 */
    77 	void customRequest ( const int& operationId, QByteArray* customData );
    81 	SmfError customRequest ( const int& operationId, QByteArray* customData );
       
    82 	
       
    83     /**
       
    84      * Cancels a request generated due to the call to any API which results 
       
    85      * into http request. Might return error if no request is currently pending.
       
    86      * Please note that there can be only one request pending at any point of time
       
    87      * @return Appropriate SmfError value
       
    88      */
       
    89 	SmfError cancelRequest ();
    78 	
    90 	
    79 public: //From smfObserver
    91 public: //From smfObserver
    80 	/**
    92 	/**
    81 	 * To notify availibility of asynchronous requests.
    93 	 * To notify availibility of asynchronous requests.
    82 	 * @param result Requested result, before using must check error param.
    94 	 * @param result Requested result, before using must check error param.
    92 	  friend class CSmfClientSymbian;
   104 	  friend class CSmfClientSymbian;
    93 #else
   105 #else
    94 	  SmfClientQt* m_SmfClientPrivate;
   106 	  SmfClientQt* m_SmfClientPrivate;
    95 	  friend class SmfClientQt;
   107 	  friend class SmfClientQt;
    96 #endif
   108 #endif
    97 	  int m_argFlag;
   109 	  quint8 m_argFlag;
    98 	  //serialized byte array of provider+other info to be sent to the server
   110 	  //serialized byte array of provider+other info to be sent to the server
    99 	  //The order:- SmfProvider then params in order of their appearance in fn
   111 	  //The order:- SmfProvider then params in order of their appearance in fn
   100 	  QByteArray m_serializedDataToServer;
   112 	  QByteArray m_serializedDataToServer;
   101 
   113 
   102 	};
   114 	};