cellular/telephonysettings/xqbindings/psetwrapper/src/psetcliwrapper.cpp
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 #include "psetcliwrapper_p.h"
       
    19 #include "psetcliwrapper.h"
       
    20 #include "logging.h"
       
    21 #include <rsssettings.h>
       
    22 #include <msssettingsobserver.h>
       
    23 #include <mpsetcliobserver.h>
       
    24 #include <psetcontainer.h>
       
    25 #include <psetcli.h>
       
    26 
       
    27 /*!
       
    28   PSetCliWrapper::PSetCliWrapper
       
    29  */
       
    30 PSetCliWrapper::PSetCliWrapper( CPsetContainer &psetContainer, 
       
    31         QObject *parent): QObject(parent),
       
    32             m_privateImpl(new PSetCliWrapperPrivate(*this))
       
    33 {
       
    34     DPRINT << ": IN ";
       
    35     
       
    36     QT_TRAP_THROWING(
       
    37         m_psetCli = psetContainer.CreateCliObjectL(*m_privateImpl));
       
    38 }
       
    39 
       
    40 /*!
       
    41   PSetCliWrapper::~PSetCliWrapper
       
    42  */
       
    43 PSetCliWrapper::~PSetCliWrapper()
       
    44 {
       
    45     DPRINT << ": IN ";
       
    46     
       
    47     delete m_psetCli;
       
    48     
       
    49     DPRINT << ": OUT ";
       
    50 }
       
    51     
       
    52 // --------  Wrapper interface  --------- // 
       
    53 /*!
       
    54   PSetCliWrapper::getColpMode
       
    55  */
       
    56 void PSetCliWrapper::getColpMode()
       
    57 {
       
    58     DPRINT << ": IN ";
       
    59      
       
    60     QT_TRAP_THROWING(m_psetCli->GetColpModeL());
       
    61     
       
    62     DPRINT << ": OUT ";
       
    63 }
       
    64 
       
    65 /*!
       
    66   PSetCliWrapper::getClipMode
       
    67  */
       
    68 void PSetCliWrapper::getClipMode()
       
    69 {
       
    70     DPRINT << ": IN ";
       
    71     
       
    72     QT_TRAP_THROWING(m_psetCli->GetClipModeL());
       
    73     
       
    74     DPRINT << ": OUT ";
       
    75 }
       
    76 
       
    77 /*!
       
    78   PSetCliWrapper::getClirMode
       
    79  */
       
    80 void PSetCliWrapper::getClirMode()
       
    81 {
       
    82     DPRINT << ": IN ";
       
    83         
       
    84     QT_TRAP_THROWING(m_psetCli->GetClirModeL());
       
    85     
       
    86     DPRINT << ": OUT ";
       
    87 }
       
    88 
       
    89 /*!
       
    90   PSetCliWrapper::getColrMode
       
    91  */
       
    92 void PSetCliWrapper::getColrMode()
       
    93 {
       
    94     DPRINT << ": IN ";
       
    95         
       
    96     QT_TRAP_THROWING(m_psetCli->GetColrModeL());
       
    97     
       
    98     DPRINT << ": OUT ";
       
    99 }
       
   100 
       
   101 /*!
       
   102   PSetCliWrapper::getCnap
       
   103  */
       
   104 void PSetCliWrapper::getCnap()
       
   105 {
       
   106     DPRINT << ": IN ";
       
   107     
       
   108     QT_TRAP_THROWING(m_psetCli->GetCnapL());
       
   109     
       
   110     DPRINT << ": OUT ";
       
   111 }
       
   112 
       
   113 /*!
       
   114   PSetCliWrapper::cancelAll
       
   115  */
       
   116 void PSetCliWrapper::cancelAll()
       
   117 {
       
   118     DPRINT << ": IN ";
       
   119     
       
   120     m_psetCli->CancelAll();  
       
   121     
       
   122     DPRINT << ": OUT ";
       
   123 }
       
   124     
       
   125 // End of File.