phonesrv_plat/phone_settings_api/inc/psetwrapper.h
changeset 12 ae8abd0db65c
child 13 e32024264ebb
equal deleted inserted replaced
0:ff3b6d0fd310 12:ae8abd0db65c
       
     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 #ifndef PSETWRAPPER_H
       
    18 #define PSETWRAPPER_H
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 class CPsetContainer; 
       
    23 class PSetCliWrapper;
       
    24 class PSetCallWaitingWrapper;
       
    25 class PSetCallDivertingWrapper;
       
    26 class PSetNetworkWrapper;
       
    27 
       
    28 #ifdef BUILD_PSETWRAPPER
       
    29 #define PSETWRAPPER_EXPORT Q_DECL_EXPORT
       
    30 #else
       
    31 #define PSETWRAPPER_EXPORT Q_DECL_IMPORT
       
    32 #endif
       
    33 
       
    34 class PSETWRAPPER_EXPORT PSetWrapper: public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38 public:
       
    39     
       
    40     explicit PSetWrapper(QObject *parent = NULL);
       
    41     
       
    42     ~PSetWrapper();
       
    43     
       
    44 public: // Functions:  
       
    45     /**
       
    46      Returns reference to call line identification settings.
       
    47      @exception bad alloc if creations fails
       
    48      */
       
    49     PSetCliWrapper& cliWrapper(); 
       
    50     
       
    51     /**
       
    52      Returns reference to call waiting settings.
       
    53      @exception bad alloc, if creations fails.
       
    54      */
       
    55     PSetCallWaitingWrapper& callWaitingWrapper();
       
    56     
       
    57     /**
       
    58      Returns reference to call diverting settings.
       
    59      @exception bad alloc, if creations fails.
       
    60      */
       
    61     PSetCallDivertingWrapper& callDivertingWrapper();
       
    62     
       
    63     /**
       
    64      Returns reference to network settings.
       
    65      @exception bad alloc, if creations fails.
       
    66      */
       
    67     PSetNetworkWrapper& networkWrapper();
       
    68         
       
    69 private: // Data: 
       
    70     // Own
       
    71     CPsetContainer *m_psetContainer; 
       
    72         
       
    73     // Phone setting handlers 
       
    74     PSetCliWrapper *m_wrapperCli; 
       
    75     
       
    76     PSetCallWaitingWrapper *m_callWaitingWrapper;
       
    77     
       
    78     PSetCallDivertingWrapper *m_callDivertingWrapper;
       
    79     
       
    80     PSetNetworkWrapper *m_networkWrapper;
       
    81     
       
    82 };
       
    83 #endif // PSETWRAPPER
       
    84