phonesrv_plat/phone_settings_api/inc/psetcliwrapper.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 PSETCLIWRAPPER_H_
       
    19 #define PSETCLIWRAPPER_H_
       
    20 
       
    21 
       
    22 #include <QObject>
       
    23 #include <psetwrappertypes.h>
       
    24 
       
    25 // Forward declarations 
       
    26 class CPsetContainer;
       
    27 class CPsetCli;
       
    28 class MPsetRequestObserver;
       
    29 class PSetCliWrapperPrivate;
       
    30 
       
    31 #ifdef BUILD_PSETWRAPPER
       
    32 #define PSETWRAPPER_EXPORT Q_DECL_EXPORT
       
    33 #else
       
    34 #define PSETWRAPPER_EXPORT Q_DECL_IMPORT
       
    35 #endif
       
    36 
       
    37 class PSETWRAPPER_EXPORT PSetCliWrapper: 
       
    38     public QObject
       
    39 {
       
    40     Q_OBJECT
       
    41 
       
    42 public:
       
    43     
       
    44     explicit PSetCliWrapper( CPsetContainer &psetContainer, 
       
    45             QObject *parent = NULL);
       
    46     
       
    47     ~PSetCliWrapper();
       
    48     
       
    49     
       
    50 public: // Functions (adaptees):  
       
    51     
       
    52     /**
       
    53     * Shows COLP (Connected Line Identification Presentation) mode.
       
    54     */
       
    55     void getColpMode();
       
    56 
       
    57     /**
       
    58     * Shows CLIP (Calling Line Identification Presentation) mode.
       
    59     */
       
    60     void getClipMode();
       
    61     
       
    62     /**
       
    63     * Shows CLIR (Calling Line Identification Restriction) mode.
       
    64     */
       
    65     void getClirMode();
       
    66 
       
    67     /**
       
    68     * Shows COLR (Connected Line Identification Restriction) mode.
       
    69     */
       
    70     void getColrMode();
       
    71 
       
    72     /**
       
    73     * Shows CNAP (Calling Number Presentation) mode.
       
    74     * 
       
    75     */
       
    76     void getCnap();
       
    77 
       
    78     /**
       
    79     * Cancels any (and all) request(s).
       
    80     */
       
    81     void cancelAll();
       
    82     
       
    83 signals: // Notify via signals     
       
    84 
       
    85     void handleCliRequesting( bool ongoing, bool interrupted ); 
       
    86 
       
    87     void cliInformation( const PsCallLineIdentity& type );
       
    88 
       
    89     void handleCliStatus(
       
    90             unsigned char *bsc, int numberOfBsc, const PsCallLineIdentity& aMode );
       
    91 
       
    92     void handleCnapStatus( int aStatus );
       
    93 
       
    94     void handleCliError( int aError );
       
    95 
       
    96 private: // Data: 
       
    97     // Phone setting handlers 
       
    98     CPsetCli* m_psetCli; 
       
    99     
       
   100     // Own
       
   101     QScopedPointer<PSetCliWrapperPrivate> m_privateImpl;
       
   102     friend class PSetCliWrapperPrivate;
       
   103 };
       
   104 
       
   105 
       
   106 #endif /* PSETCLIWRAPPER_H_ */