diff -r 86af6c333601 -r 0446eb7b28aa example/clientapi/smf/inc/smfplugins/smfcontacts/smfcontactfetcherplugin.h --- a/example/clientapi/smf/inc/smfplugins/smfcontacts/smfcontactfetcherplugin.h Tue Apr 06 16:35:37 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,131 +0,0 @@ -/** - * @file smfcontactfetcherplugin.h - * @author Nalina Hariharan, Sasken Communication Technologies Ltd - Initial contribution - * @version 1.0 - * - * @section LICENSE - * - * Copyright (c) 2010 Sasken Communication Technologies Ltd. - * All rights reserved. - * This component and the accompanying materials are made available - * under the terms of the "Eclipse Public License v1.0" - * which accompanies this distribution, and is available - * at the URL "http://www.eclipse.org/legal/epl-v10.html" - * - * @section DESCRIPTION - * - * Interface specification for fetching contacts - */ - -#ifndef SMFCONTACTFETCHERPLUGIN_H_ -#define SMFCONTACTFETCHERPLUGIN_H_ - -#include -#include -#include -#include - -/** - * @ingroup smf_plugin_group - * Interface specification for fetching contacts. This class provides - * basic functionality to allow applications to obtain list of - * friends, followers, groups of a user in a social networking service. - * - * All of the functionality described here should be implemented by a service - * specific plug-in. - */ -class SmfContactFetcherPlugin : public SmfPluginBase - { - Q_OBJECT -public: - /** - * Constructor with default argument - * @param aParent The parent object - */ - SmfContactFetcherPlugin( QObject* aParent = 0 ); - - /** - * Destructor - */ - ~SmfContactFetcherPlugin( ); - - /** - * Method to get the list of friends - * @param aRequest [out] The request data to be sent to network - * @param aPageNum The page to be extracted - * @param aItemsPerPage Number of items per page - * @return SmfPluginError Plugin error if any, else SmfPluginErrNone - */ - virtual SmfPluginError friends( SmfPluginRequestData *aRequest, - const int aPageNum = SMF_FIRST_PAGE, - const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; - - /** - * Method to get the list of followers - * @param aRequest [out] The request data to be sent to network - * @param aPageNum The page to be extracted - * @param aItemsPerPage Number of items per page - * @return SmfPluginError Plugin error if any, else SmfPluginErrNone - */ - virtual SmfPluginError followers( SmfPluginRequestData *aRequest, - const int aPageNum = SMF_FIRST_PAGE, - const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; - - /** - * Method to search for a contact - * @param aRequest [out] The request data to be sent to network - * @param aContact contact to be searched - * @param aPageNum The page to be extracted - * @param aItemsPerPage Number of items per page - * @return SmfPluginError Plugin error if any, else SmfPluginErrNone - */ - virtual SmfPluginError search( SmfPluginRequestData *aRequest, - const SmfContact *aContact, - const int aPageNum = SMF_FIRST_PAGE, - const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; - - /** - * Method to search for contacts (friends) who are near the user. - * Proximity defines accuracy level - * @param aRequest [out] The request data to be sent to network - * @param aLocation The location search criteria - * @param aProximity location search boundary - * @param aPageNum The page to be extracted - * @param aItemsPerPage Number of items per page - * @return SmfPluginError Plugin error if any, else SmfPluginErrNone - */ - virtual SmfPluginError searchNear( SmfPluginRequestData *aRequest, - const SmfPlace* aLocation, - const SmfLocationSearchBoundary aProximity, - const int aPageNum = SMF_FIRST_PAGE, - const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; - - /** - * Method to get the list of groups - * @param aRequest [out] The request data to be sent to network - * @param aPageNum The page to be extracted - * @param aItemsPerPage Number of items per page - * @return SmfPluginError Plugin error if any, else SmfPluginErrNone - */ - virtual SmfPluginError groups( SmfPluginRequestData *aRequest, - const int aPageNum = SMF_FIRST_PAGE, - const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; - - /** - * Method to search for a contact in a group - * @param aRequest [out] The request data to be sent to network - * @param aGroup the group in which to search - * @param aPageNum The page to be extracted - * @param aItemsPerPage Number of items per page - * @return SmfPluginError Plugin error if any, else SmfPluginErrNone - */ - virtual SmfPluginError searchInGroup( SmfPluginRequestData *aRequest, - const SmfGroup &aGroup, - const int aPageNum = SMF_FIRST_PAGE, - const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; - - }; - -Q_DECLARE_INTERFACE( SmfContactFetcherPlugin, "org.symbian.smf.plugin.contact.fetcher/v1.0" ); - -#endif /* SMFCONTACTFETCHERPLUGIN_H_ */