videocollection/videocollectionview/inc/videooperatorservice.h
branchRCL_3
changeset 56 839377eedc2b
equal deleted inserted replaced
54:315810614048 56:839377eedc2b
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   VideoOperatorService class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VIDEOOPERATORSERVICE_H
       
    20 #define VIDEOOPERATORSERVICE_H
       
    21 
       
    22 #include <qobject.h>
       
    23 
       
    24 class VideoOperatorServicePrivate;
       
    25 
       
    26 /**
       
    27  * Public functionality for loading and launching operator customisable services.
       
    28  */
       
    29 class VideoOperatorService : public QObject
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33     Q_DISABLE_COPY(VideoOperatorService)
       
    34 
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Contructor.
       
    39      *
       
    40      * @param parent parent of this widget
       
    41      */
       
    42     VideoOperatorService(QObject *parent = 0);
       
    43 
       
    44     /**
       
    45      * Destructor.
       
    46      *
       
    47      */
       
    48     ~VideoOperatorService();    
       
    49     
       
    50     /**
       
    51      * Loads the service.
       
    52      * 
       
    53      * @titleKey Central Repository key id for the service's title.
       
    54      * @iconKey Central Repository key id for the service's icon resource.
       
    55      * @uriKey Central Repository key id for the service's URI.
       
    56      * @uidKey Central Repository key id for the service's UID.
       
    57      * 
       
    58      * @return True if service was loaded succesfully.
       
    59      */
       
    60     bool load(int titleKey, int iconKey, int uriKey, int uidKey);
       
    61 
       
    62     /**
       
    63      * Returns name for the service.
       
    64      * 
       
    65      * @return name of the service.
       
    66      */
       
    67     const QString title() const;
       
    68     
       
    69     /**
       
    70      * Returns the icon resource for the service.
       
    71      * 
       
    72      * @return path or resource id to the icon.
       
    73      */
       
    74     const QString iconResource() const;
       
    75     
       
    76 public slots:
       
    77     
       
    78     /**
       
    79      * Launches the service.
       
    80      */
       
    81     void launchService();
       
    82     
       
    83 private:
       
    84     
       
    85     /**
       
    86      * Pointer to private implementation.
       
    87      */
       
    88     VideoOperatorServicePrivate *d_ptr;
       
    89 
       
    90 };
       
    91 
       
    92 #endif // VIDEOOPERATORSERVICE_H
       
    93 
       
    94 // End of file.