phonesrv_plat/phone_settings_ui_notes_api/inc/psuidivertnotehandler.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 PSUIDIVERTNOTETHANDLER_H_
       
    19 #define PSUIDIVERTNOTEHANDLER_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QList>
       
    23 
       
    24 class PSetCallDivertingWrapper;
       
    25 class PSCallDivertingCommand;
       
    26 class PSCallDivertingStatus;
       
    27 
       
    28 #ifdef BUILD_PSUINOTES
       
    29 #define PSUINOTES_EXPORT Q_DECL_EXPORT
       
    30 #else
       
    31 #define PSUINOTES_EXPORT Q_DECL_IMPORT
       
    32 #endif
       
    33 
       
    34 class PSUINOTES_EXPORT PsUiDivertNoteHandler : public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37     
       
    38 public:
       
    39     PsUiDivertNoteHandler(PSetCallDivertingWrapper& callDivertingWrapper);
       
    40     ~PsUiDivertNoteHandler();
       
    41 
       
    42 public slots: // Slots: 
       
    43 
       
    44    /**
       
    45     * Set info request results
       
    46     * @param setting 
       
    47     * @param plural
       
    48     */
       
    49    void handleDivertingChanged(
       
    50         const PSCallDivertingCommand& setting, 
       
    51         bool plural);
       
    52    
       
    53    /**
       
    54     * Get info request results
       
    55     * @param divertList
       
    56     * @param plural
       
    57     */
       
    58    void handleDivertingStatus(
       
    59         QList<PSCallDivertingStatus*>& divertList, 
       
    60         bool plural);
       
    61    
       
    62    /**
       
    63     * Request failed.
       
    64     * @param reason Reason code for fail 
       
    65     */
       
    66    void handleDivertingError(int reason);
       
    67  
       
    68    /**
       
    69     * Handles requesting notes.
       
    70     *
       
    71     * @param aOngoing Is there a request going on.
       
    72     * @param aInterrupted Request needs to immediately cancelled.
       
    73     */
       
    74    void handleCFRequesting(bool ongoing, bool interrupted);
       
    75    
       
    76 private:   // data
       
    77     
       
    78    PSetCallDivertingWrapper& m_callDivertingWrapper;
       
    79    
       
    80    int m_activeNoteId;
       
    81    int m_activeProgressNoteId;
       
    82    
       
    83 };
       
    84 
       
    85 #endif /* PSUIDIVERTNOTEHANDLER_H_ */