phonebookui/pbkcommonui/inc/cntextensionmanager.h
branchRCL_3
changeset 62 5b6f26637ad3
equal deleted inserted replaced
58:d4f567ce2e7c 62:5b6f26637ad3
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CNTEXTENSIONMANAGER_H_
       
    19 #define CNTEXTENSIONMANAGER_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <qtcontacts.h>
       
    23 #include "cntglobal.h"
       
    24 
       
    25 class CntUiExtensionFactory;
       
    26 class QPluginLoader;
       
    27 
       
    28 /**
       
    29  * Loads extension plugins and offers access to individual extensions.
       
    30  */
       
    31 class CntExtensionManager : public QObject 
       
    32     {
       
    33     Q_OBJECT
       
    34     
       
    35 public:
       
    36     CntExtensionManager( QObject* aParent = 0 );
       
    37     virtual ~CntExtensionManager();
       
    38     
       
    39     int pluginCount();
       
    40     
       
    41     CntUiExtensionFactory* pluginAt( int index);
       
    42     
       
    43     CntUiExtensionFactory* servicePlugin( int serviceId);
       
    44     
       
    45 private:
       
    46     
       
    47     void loadExtensionPlugins();
       
    48     void unloadExtensionPlugins();
       
    49     
       
    50 private:
       
    51     
       
    52     QList<QPluginLoader*>   mPlugins;
       
    53     bool                    mPluginsLoaded;
       
    54     
       
    55     };
       
    56 #endif /* CNTEXTENSIONMANAGER_H_ */
       
    57