cellular/psuinotes/inc/psuiutils.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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 PSUIUTILS_H
       
    19 #define PSUIUTILS_H
       
    20 
       
    21 #include <qvariant.h>
       
    22 
       
    23 #ifdef BUILD_PSUINOTES
       
    24 #define PSUINOTES_EXPORT Q_DECL_EXPORT
       
    25 #else
       
    26 #define PSUINOTES_EXPORT Q_DECL_IMPORT
       
    27 #endif
       
    28 
       
    29 class XQSettingsManager;
       
    30 
       
    31 /*!
       
    32     \class PsUiUtils
       
    33     \brief The static functionality.
       
    34  */
       
    35 class PSUINOTES_EXPORT PsUiUtils : public QObject
       
    36 {
       
    37     Q_OBJECT
       
    38 
       
    39 public:
       
    40     /*!
       
    41       Error code text conversion
       
    42       */
       
    43     static bool errorCodeTextMapping(const int errorcode, QString &errorText);
       
    44    
       
    45 };
       
    46 
       
    47 /*!
       
    48     \class SettingsWrapper
       
    49     \brief Wraps central repository and P&S dependency.
       
    50  */
       
    51 class PSUINOTES_EXPORT PsUiSettingsWrapper : public QObject
       
    52 {
       
    53     Q_OBJECT
       
    54 public:
       
    55     PsUiSettingsWrapper(QObject *parent = NULL);
       
    56     ~PsUiSettingsWrapper();
       
    57 public:
       
    58     
       
    59     /*!
       
    60      Call waiting distiquish not provisioned support
       
    61      */
       
    62     bool isFeatureCallWaitingDistiquishNotProvisionedEnabled();
       
    63     
       
    64     /*!
       
    65      Checks if phone is in offline mode or not.
       
    66      Return true if phone is in offline mode.
       
    67      Return false if phone is not in offline mode.
       
    68      */
       
    69     bool isPhoneOffline() const;
       
    70     
       
    71     /*!
       
    72      Number grouping support
       
    73      */
       
    74     bool numberGroupingSupported() const;
       
    75 
       
    76 private:
       
    77     /*!
       
    78       Read cenrep value. 
       
    79       */
       
    80     QVariant readCenrepValue( const long int uid, const unsigned long int key) const;
       
    81 
       
    82 private: // Data
       
    83     // Own
       
    84     XQSettingsManager* m_Settings;
       
    85 };
       
    86 
       
    87 
       
    88 #endif // PSUIUTILS_H