example/clientapi/smf/smfprovider.h
changeset 1 4b1e636e8a71
parent 0 5d2360e70d9f
child 2 86af6c333601
equal deleted inserted replaced
0:5d2360e70d9f 1:4b1e636e8a71
     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 "{License}"
       
     6 * which accompanies  this distribution, and is available
       
     7 * at the URL "{LicenseUrl}".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Interface spefication for sfm service provider
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SMFPROVIDER_H
       
    20 #define SMFPROVIDER_H
       
    21 
       
    22 class SmfContact;
       
    23 
       
    24 /**
       
    25  * Interface for a base service provider. Other service provider classes o derive from
       
    26  * this base class so that each has access to service provider information
       
    27  *
       
    28  * All of the functionality described here should be implemented by a service
       
    29  * specific plug-in object.
       
    30  */
       
    31 class SmfProvider : public QObject
       
    32 {
       
    33   Q_OBJECT;
       
    34 
       
    35 public:
       
    36   // Seeing as this is a plug-in implementation, these will realistically
       
    37   // be generated by SMF factory of some kind
       
    38   SmfProvider(QObject* parent = 0);
       
    39   ~SmfProvider();
       
    40 
       
    41 public:
       
    42   virtual QString serviceName() = 0; // licalizable name of the service
       
    43   virtual QImage serviceIcon() = 0; // Logo of the service
       
    44   virtual QString description() = 0; // readable service description
       
    45   virtual QUrl serviceUrl() = 0; // website of the service
       
    46   virtual QUrl applicationUrl() = 0; // application providing this service
       
    47   virtual SmfContact selfContact()=0;//provides profile of the accound holder
       
    48 
       
    49 slots:
       
    50   //None at the moment
       
    51 
       
    52 signals:
       
    53   //None at the moment
       
    54 };
       
    55 
       
    56 #endif // SMFPROVIDER_H