phonesrv_plat/phone_settings_ui_notes_api/inc/psuiclinotehandler.h
changeset 53 25b8d29b7c59
equal deleted inserted replaced
51:12bc758d6a02 53:25b8d29b7c59
       
     1 /*
       
     2  * Copyright (c) 2010 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 PSUICLINOTEHANDLER_H_
       
    19 #define PSUICLINOTEHANDLER_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QList>
       
    23 #include <psetcliwrapper.h>
       
    24 
       
    25 class PSetCliWrapper;
       
    26 
       
    27 #ifdef BUILD_PSUINOTES
       
    28 #define PSUINOTES_EXPORT Q_DECL_EXPORT
       
    29 #else
       
    30 #define PSUINOTES_EXPORT Q_DECL_IMPORT
       
    31 #endif
       
    32 
       
    33 class PSUINOTES_EXPORT PsUiCliNoteHandler : public QObject
       
    34 {
       
    35     Q_OBJECT
       
    36     
       
    37 public:
       
    38     PsUiCliNoteHandler(PSetCliWrapper& cliWrapper);
       
    39     ~PsUiCliNoteHandler();
       
    40 
       
    41 public slots: // Slots: 
       
    42 
       
    43     void handleCliRequesting( bool ongoing, bool interrupted ); 
       
    44 
       
    45     void cliInformation( const PsCallLineIdentity& type );
       
    46 
       
    47     void handleCliError( int error );
       
    48     
       
    49     void handleCnapStatus( int status );
       
    50 
       
    51 private:   // data
       
    52    
       
    53     // For cli signals
       
    54     PSetCliWrapper& m_cliWrapper;
       
    55      
       
    56     // Current active note id 
       
    57     int m_activeNoteId;
       
    58     
       
    59     // Current progress note id
       
    60     int m_activeProgressNoteId;
       
    61    
       
    62 };
       
    63 
       
    64 #endif /* PSUICLINOTEHANDLER_H_ */