smf/inc/smfplugins/smfmusic/smfmusiceventsplugin.h
changeset 5 edb9dc8273d9
parent 3 0446eb7b28aa
equal deleted inserted replaced
4:969092730d34 5:edb9dc8273d9
    21 
    21 
    22 #ifndef SMFMUSICEVENTSPLUGIN_H_
    22 #ifndef SMFMUSICEVENTSPLUGIN_H_
    23 #define SMFMUSICEVENTSPLUGIN_H_
    23 #define SMFMUSICEVENTSPLUGIN_H_
    24 
    24 
    25 #include <smfpluginbase.h>
    25 #include <smfpluginbase.h>
    26 #include <qtcontacts.h>
    26 //#include <qtcontacts.h>
    27 #include <smfevent.h>
    27 #include <smfevent.h>
    28 #include <smfplace.h>
    28 #include <smfplace.h>
       
    29 #include <qgeopositioninfo.h> // Qt mobility class
    29 
    30 
    30 // Forward declaration
    31 // Forward declaration
    31 class SmfPluginManagerUtil;
    32 class SmfPluginUtil;
    32 
    33 
    33 using namespace QtMobility;
    34 using namespace QtMobility;
    34 
    35 
    35 /**
    36 /**
    36  * @ingroup smf_plugin_group
    37  * @ingroup smf_plugin_group
    41  * 
    42  * 
    42  * Note: This class has dependencies on QtMobility project
    43  * Note: This class has dependencies on QtMobility project
    43  */
    44  */
    44 class SmfMusicEventsPlugin : public SmfPluginBase
    45 class SmfMusicEventsPlugin : public SmfPluginBase
    45 	{
    46 	{
    46 	Q_OBJECT
       
    47 public:
    47 public:
    48 	/**
    48 	/**
    49 	 * Constructor with default argument
    49 	 * Constructor with default argument
    50 	 * @param aUtil The SmfPluginManagerUtil instance. The plugins can 
    50 	 * @param aUtil The SmfPluginUtil instance. The plugins can 
    51 	 * call the method getAuthKeys() of this class, with its pluginID to 
    51 	 * call the method getAuthKeys() of this class, with its pluginID to 
    52 	 * get the OAuth keys, keys are returned only if this plugin is 
    52 	 * get the OAuth keys, keys are returned only if this plugin is 
    53 	 * authorised by Smf framework
    53 	 * authorised by Smf framework
    54 	 */
    54 	 */
    55 	SmfMusicEventsPlugin( SmfPluginManagerUtil* aUtil );
    55 	SmfMusicEventsPlugin( SmfPluginUtil* aUtil );
    56 	
    56 	
    57 	/**
    57 	/**
    58 	 * Destructor
    58 	 * Destructor
    59 	 */
    59 	 */
    60 	~SmfMusicEventsPlugin( );
    60 	~SmfMusicEventsPlugin( );
    66 	 * @param aPageNum The page to be extracted
    66 	 * @param aPageNum The page to be extracted
    67 	 * @param aItemsPerPage Number of items per page
    67 	 * @param aItemsPerPage Number of items per page
    68 	 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone
    68 	 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone
    69 	 */
    69 	 */
    70 	virtual SmfPluginError events( SmfPluginRequestData &aRequest,
    70 	virtual SmfPluginError events( SmfPluginRequestData &aRequest,
    71 			const QtMobility::QContactGeolocation &aLocation,
    71 			const QGeoPositionInfo &aLocation,
    72 			const int aPageNum = SMF_FIRST_PAGE, 
    72 			const int aPageNum = SMF_FIRST_PAGE, 
    73 			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
    73 			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
    74 	
    74 	
    75 	/**
    75 	/**
    76 	 * Method to get the venues based on location
    76 	 * Method to get the venues based on location
    79 	 * @param aPageNum The page to be extracted
    79 	 * @param aPageNum The page to be extracted
    80 	 * @param aItemsPerPage Number of items per page
    80 	 * @param aItemsPerPage Number of items per page
    81 	 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone
    81 	 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone
    82 	 */
    82 	 */
    83 	virtual SmfPluginError venues( SmfPluginRequestData &aRequest,
    83 	virtual SmfPluginError venues( SmfPluginRequestData &aRequest,
    84 			const QtMobility::QContactGeolocation &aLocation,
    84 			const QGeoPositionInfo &aLocation,
    85 			const int aPageNum = SMF_FIRST_PAGE, 
    85 			const int aPageNum = SMF_FIRST_PAGE, 
    86 			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
    86 			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
    87 	
    87 	
    88 	/**
    88 	/**
    89 	 * Method to get the events based on venues
    89 	 * Method to get the events based on venues