mpx/mpxviewframeworkqt/inc/mpxplugindata.h
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
child 59 666f9a5a90a9
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
     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 MPXPLUGINDATA_H
       
    19 #define MPXPLUGINDATA_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <QList>
       
    23 // CLASS DECLARATION
       
    24 
       
    25 /**
       
    26  *  QMpxPluginData
       
    27  * 
       
    28  */
       
    29 class MpxPluginData
       
    30     {
       
    31 public:
       
    32     enum TMPXViewPluginPriorities{
       
    33         EMPXViewPluginPriorityLowest = -20000,
       
    34         EMPXViewPluginPriorityLow = -10000,
       
    35         EMPXViewPluginPriorityNormal = 0,
       
    36         EMPXViewPluginPriorityHigh = 10000,
       
    37         EMPXViewPluginPriorityHighest = 20000
       
    38     };
       
    39 
       
    40     /**
       
    41      * Constructor
       
    42      */
       
    43     MpxPluginData( );
       
    44 
       
    45     /**
       
    46      * Destructor.
       
    47      */
       
    48     ~MpxPluginData();
       
    49 
       
    50     /**
       
    51      * Plugin id geter
       
    52      * @return plugin id 
       
    53      */
       
    54     int id()  const;
       
    55     
       
    56     /**
       
    57      * Plugin interface id geter
       
    58      * @return interface id implemented by plugin 
       
    59      */
       
    60     int type() const;
       
    61     
       
    62     /**
       
    63      * Plugin priority geter
       
    64      * @return priority of plugin 
       
    65      */
       
    66     TMPXViewPluginPriorities priority() const;
       
    67     
       
    68     /**
       
    69      * Plugin supported functionality geter
       
    70      * @return list of functionality delivered by plugin
       
    71      */
       
    72     const QList< int >& supportedId() const;
       
    73     
       
    74     /**
       
    75      * Plugin id seter
       
    76      * @param value - new value of plugin id
       
    77      */
       
    78     void setId( int value );
       
    79     
       
    80     /**
       
    81      * Plugin interface id seter
       
    82      * @param value - new value of plugin interface id
       
    83      */
       
    84     void setType( int value );
       
    85     
       
    86     /**
       
    87      * Plugin priority seter
       
    88      * @param value - new plugin priority
       
    89      */
       
    90     void setPriority( TMPXViewPluginPriorities value );
       
    91     
       
    92     /**
       
    93      * Plugin supporterd functionality seter
       
    94      * @param value - new functionality supported by plugin
       
    95      */
       
    96     void addSupportedId( int value );
       
    97 
       
    98 private:
       
    99     int pluginId;
       
   100     int pluginType;
       
   101     TMPXViewPluginPriorities pluginPriority;
       
   102     QList< int > pluginSupportedId;
       
   103     };
       
   104 
       
   105 #endif // MPXPLUGINDATA_H