javamanager/javasettings/appsettingsview_qt/src/javaapplicationsettings.h
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 19 71c436fe3ce0
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
     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:
       
    15 *
       
    16 */
       
    17 #ifndef JAVAAPPLICATIONSETTINGS_H
       
    18 #define JAVAAPPLICATIONSETTINGS_H
       
    19 
       
    20 #include <string>
       
    21 #include <vector>
       
    22 #include <QString>
       
    23 #include <QStringList>
       
    24 #include <hbdataformmodelitem.h>
       
    25 
       
    26 class JavaApplicationSettings
       
    27 {
       
    28 public:
       
    29     JavaApplicationSettings(const QString&,
       
    30                             const QStringList&);
       
    31     JavaApplicationSettings(const QString&,
       
    32                             const QStringList&,
       
    33                             const std::wstring&,
       
    34                             const std::string&,
       
    35                             const std::vector<std::wstring>&);
       
    36     JavaApplicationSettings(const QString&,
       
    37                             const QStringList&,
       
    38                             const std::wstring&,
       
    39                             const std::string&,
       
    40                             const std::vector<std::wstring>&,
       
    41                             const std::wstring&,
       
    42                             const std::wstring&);
       
    43     JavaApplicationSettings();
       
    44 
       
    45     const QString& getName() const;
       
    46     const QStringList& getValues() const;
       
    47     void setCurrentValue(int);
       
    48     int getCurrentValue();
       
    49     const QString& getValue(int);
       
    50     int getValue(const QString&);
       
    51     void setId(HbDataFormModelItem *);
       
    52     const HbDataFormModelItem * getId();
       
    53     const QList<JavaApplicationSettings*>& getHighRiskList() const;
       
    54     void setHighRiskList(const QList<JavaApplicationSettings*>&);
       
    55     const QList<JavaApplicationSettings*>& getMutuallyExclusiveList() const;
       
    56     void setMutuallyExclusiveList(const QList<JavaApplicationSettings*>&);
       
    57     const std::wstring& getColumnName();
       
    58     const std::string& getTableName();
       
    59     const std::wstring& getFilterColumnName();
       
    60     const std::wstring& getFilterColumnValue();
       
    61     const std::vector<std::wstring>& getStorageValues();
       
    62 private:
       
    63     QString iName;
       
    64     QStringList iValues;
       
    65     HbDataFormModelItem * iId;
       
    66     QList<JavaApplicationSettings*> iHighRiskList;
       
    67     QList<JavaApplicationSettings*> iMutuallyExclusiveList;
       
    68     int iCurrentValue;
       
    69     std::wstring iColumnName;
       
    70     std::string iTableName;
       
    71     std::vector<std::wstring> iStorageValues;
       
    72     std::wstring iFilterColumnName;
       
    73     std::wstring iFilterColumnValue;
       
    74 };
       
    75 
       
    76 #endif // JAVAAPPLICATIONSETTINGS_H