perfapps/piprofilerui/ui/hb/inc/pluginattributes.h
changeset 51 b048e15729d6
parent 26 41ebde60981f
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
       
     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 PLUGINATTRIBUTES_H_
       
    19 #define PLUGINATTRIBUTES_H_
       
    20 
       
    21 /*
       
    22  * 
       
    23  * PluginAttributes class definition, internal settings format
       
    24  *  
       
    25  */
       
    26 #include <qobject.h>
       
    27 #include <qvariant.h>
       
    28 #include <qstring.h>
       
    29 
       
    30 class HbDataFormModelItem;
       
    31 
       
    32 /*
       
    33  * 
       
    34  * TSettingItem class definition, internal settings format
       
    35  *  
       
    36  */
       
    37 class SettingItem
       
    38 {
       
    39 public:
       
    40     enum
       
    41     {
       
    42         SettingItemTypeInt = 0, SettingItemTypeBool, SettingItemTypeHex, SettingItemTypeText
       
    43     };
       
    44 
       
    45 public:
       
    46     QString mSettingText;
       
    47     int mType;
       
    48     QString mValue;
       
    49     QString mSettingDescription;
       
    50     QString mUIText;
       
    51 };
       
    52 
       
    53 class PluginAttributes// : public QObject
       
    54 {
       
    55     //Q_OBJECT
       
    56 public:
       
    57 
       
    58     // default constructor
       
    59     PluginAttributes();
       
    60 
       
    61     ~PluginAttributes();
       
    62 public:
       
    63     int mUid;
       
    64     QString mShortName; // name of the plugin, short name
       
    65     QString mName; // name of the plugin, long name
       
    66     QString mDescription; // plugin description, info about HW/SW dependencies etc.
       
    67     int mSampleRate; // sample rate of the plugin
       
    68     bool mEnabled; // enabled for profiling
       
    69     bool mIsHidden; // hidden, i.e. no start/stop controls
       
    70     int mItemCount; // plugin specific setting item count
       
    71 
       
    72 
       
    73     // plugin specific settings, plugin implementation dependent
       
    74     SettingItem mSettingItem1;
       
    75     SettingItem mSettingItem2;
       
    76     SettingItem mSettingItem3;
       
    77     SettingItem mSettingItem4;
       
    78     SettingItem mSettingItem5;
       
    79     SettingItem mSettingItem6;
       
    80 
       
    81     HbDataFormModelItem *mFormItemSettingItem1;
       
    82     HbDataFormModelItem *mFormItemSettingItem2;
       
    83     HbDataFormModelItem *mFormItemSettingItem3;
       
    84     HbDataFormModelItem *mFormItemSettingItem4;
       
    85     HbDataFormModelItem *mFormItemSettingItem5;
       
    86     HbDataFormModelItem *mFormItemSettingItem6;
       
    87     HbDataFormModelItem *mFormItemSampleRate;
       
    88 
       
    89 };
       
    90 
       
    91 #endif /* PLUGINATTRIBUTES_H_ */