phonebookui/pbkcommonui/tsrc/mobactionextensionexample/inc/mobexampleactionfactory.h
changeset 37 fd64c38c277d
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
       
     1 /*
       
     2 * Copyright (c) 2010 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 MOBEXAMPLEACTIONFACTORY_H
       
    19 #define MOBEXAMPLEACTIONFACTORY_H
       
    20 
       
    21 #include <qcontactactionfactory.h>
       
    22 #include <qcontactaction.h>
       
    23 
       
    24 class MobBaseAction;
       
    25 
       
    26 QTM_USE_NAMESPACE
       
    27 
       
    28 class Q_DECL_EXPORT MobExampleActionFactory : public QContactActionFactory
       
    29 {
       
    30     Q_OBJECT
       
    31     Q_INTERFACES(QtMobility::QContactActionFactory)
       
    32 
       
    33 public:
       
    34     MobExampleActionFactory();
       
    35     ~MobExampleActionFactory();
       
    36 
       
    37     QString name() const;
       
    38     QList<QContactActionDescriptor> actionDescriptors() const;
       
    39     QContactAction* instance(const QContactActionDescriptor& descriptor) const;
       
    40     QVariantMap actionMetadata(const QContactActionDescriptor& descriptor) const;
       
    41 
       
    42 private:
       
    43     QList<MobBaseAction *> actionList;
       
    44 };
       
    45 
       
    46 #endif