smf/smfservermodule/smfserver/smfplugins/smfmusiceventsplugin.h
changeset 25 a180113055cb
parent 24 1cee9f1b95e0
child 26 83d6a149c755
equal deleted inserted replaced
24:1cee9f1b95e0 25:a180113055cb
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "Eclipse Public License v1.0" 
       
     6  * which accompanies  this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Contributors:
       
    13  * Manasij Roy, Nalina Hariharan
       
    14  * 
       
    15  * Description:
       
    16  * Interface specification for music events
       
    17  * Note: This class has dependencies on QtMobility project
       
    18  *
       
    19  */
       
    20 
       
    21 
       
    22 #ifndef SMFMUSICEVENTSPLUGIN_H_
       
    23 #define SMFMUSICEVENTSPLUGIN_H_
       
    24 
       
    25 #include <smfpluginbase.h>
       
    26 #include <smfevent.h>
       
    27 #include <smflocation.h>
       
    28 #include <qgeopositioninfo.h> // Qt mobility class
       
    29 
       
    30 using namespace QtMobility;
       
    31 
       
    32 /**
       
    33  * @ingroup smf_plugin_group
       
    34  * Interface specification for music events
       
    35  *
       
    36  * All of the functionality described here should be implemented by a service
       
    37  * specific plug-in.
       
    38  * 
       
    39  * Note: This class has dependencies on QtMobility project
       
    40  */
       
    41 class SmfMusicEventsPlugin : public SmfPluginBase
       
    42 	{
       
    43 public:
       
    44 	
       
    45 	/**
       
    46 	 * Destructor
       
    47 	 */
       
    48 	virtual ~SmfMusicEventsPlugin( ) {}
       
    49 	
       
    50 	/**
       
    51 	 * Method to get the events based on location
       
    52 	 * @param aRequest [out] The request data to be sent to network
       
    53 	 * @param aLocation Location of the event
       
    54 	 * @param aPageNum The page to be extracted
       
    55 	 * @param aItemsPerPage Number of items per page
       
    56 	 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone
       
    57 	 */
       
    58 	virtual SmfPluginError events( SmfPluginRequestData &aRequest,
       
    59 			const SmfLocation &aLocation,
       
    60 			const int aPageNum = SMF_FIRST_PAGE, 
       
    61 			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
       
    62 	
       
    63 	/**
       
    64 	 * Method to get the venues based on location
       
    65 	 * @param aRequest [out] The request data to be sent to network
       
    66 	 * @param aLocation Location of the venue
       
    67 	 * @param aPageNum The page to be extracted
       
    68 	 * @param aItemsPerPage Number of items per page
       
    69 	 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone
       
    70 	 */
       
    71 	virtual SmfPluginError venues( SmfPluginRequestData &aRequest,
       
    72 			const SmfLocation &aLocation,
       
    73 			const int aPageNum = SMF_FIRST_PAGE, 
       
    74 			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
       
    75 	
       
    76 	/**
       
    77 	 * Method to post events
       
    78 	 * @param aRequest [out] The request data to be sent to network
       
    79 	 * @param aEventList The list of events to be posted
       
    80 	 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone
       
    81 	 */
       
    82 	virtual SmfPluginError postEvents( SmfPluginRequestData &aRequest,
       
    83 			const QList<SmfEvent> &aEventList ) = 0;
       
    84 	
       
    85 	/**
       
    86 	 * Customised method for SmfMusicEventsPlugin interface
       
    87 	 * @param aRequest [out] The request data to be sent to network
       
    88 	 * @param aOperation The operation type (should be known between 
       
    89 	 * the client interface and the plugin)
       
    90 	 * @param aData The data required to form the request (The type 
       
    91 	 * of data should be known between client and the plugin)
       
    92 	 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone
       
    93 	 */
       
    94 	virtual SmfPluginError customRequest( SmfPluginRequestData &aRequest, 
       
    95 			const int &aOperation, QByteArray *aData ) = 0;
       
    96 	
       
    97 	};
       
    98 
       
    99 Q_DECLARE_INTERFACE( SmfMusicEventsPlugin, "org.symbian.smf.plugin.music.events/v0.2" );
       
   100 
       
   101 #endif /* SMFMUSICEVENTSPLUGIN_H_ */