vmbx/vmbxengine/inc/vmbxuihandler.h
changeset 12 ae8abd0db65c
child 19 e44a8c097b15
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:  Handler ui related.
       
    15 *  Interface   : Private, CVmbxUiHandler
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef VMBXENGINEQTUI_H
       
    20 #define VMBXENGINEQTUI_H
       
    21 
       
    22 
       
    23 #include <voicemailboxdefs.h>
       
    24 #include "mvmbxuihandler.h"
       
    25 
       
    26 // FORWARD DECLARATION
       
    27 class VmbxQtUiHandler;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *
       
    33 *  @lib qvmbxengine.lib
       
    34 *  @since  S60 v5.2
       
    35 */
       
    36 NONSHARABLE_CLASS( CVmbxUiHandler ):public CBase,
       
    37                      public MVmbxUiHandler
       
    38     {
       
    39 
       
    40 public: // Constructors and destructor
       
    41     /**
       
    42      * Two-phased constructor
       
    43      * @since S60 v5.2
       
    44      */
       
    45     static CVmbxUiHandler* NewL();
       
    46 
       
    47     /**
       
    48     * Destructor.
       
    49     */
       
    50      ~CVmbxUiHandler();
       
    51 
       
    52 //From MVmbxUiHandler
       
    53 
       
    54     /**
       
    55      * Show mailbox query dialog
       
    56      * Leaves if user cancel selected.
       
    57      *
       
    58      * @since S60 v5.2
       
    59      * @param aType in TVmbxType type
       
    60      * @param aMode Tin VmbxQueryMode mode
       
    61      * @param aNumber the voice mailbox number
       
    62      * @param aResult out the result of dialog
       
    63      */
       
    64     virtual void ShowVmbxQueryDialog( const TVmbxType& aType,
       
    65         const TVmbxQueryMode & aMode, TDes& aNumber, TInt& aResult );
       
    66 
       
    67     /**
       
    68      * Show define number in selection dialog
       
    69      *
       
    70      * @since S60 v5.2
       
    71      * @param in aType vmbx type
       
    72      * @param out aResult the result of dialog
       
    73      */
       
    74     virtual void ShowDefineSelectionDialog( TVmbxType& aType, TInt& aResult );
       
    75 
       
    76     /**
       
    77      * Show call number in selection dialog
       
    78      *
       
    79      * @since S60 v5.2
       
    80      * @param in aArray array of the defined voice mailbox entry
       
    81      * @param in aIcons icons of the defined voice mailbox
       
    82      * @param out aParams the type TVoiceMailboxParams which should include
       
    83      *          the service id and the type of seclected TVmbxType
       
    84      * @param out aResult the result user seclected
       
    85      */
       
    86     /*virtual void ShowCallSelectionDialogL(
       
    87                 const RPointerArray<CVoiceMailboxEntry>& aArray,
       
    88                 //CArrayPtr<CGulIcon>* aIcons,
       
    89                 TVoiceMailboxParams& aParams, TInt& aResult ) = 0;*/
       
    90 
       
    91     /**
       
    92      * Show confirmation dialog when save number to phone
       
    93      *
       
    94      * @since S60 v5.2
       
    95      */
       
    96     virtual void ShowSaveToPhoneNote();
       
    97 
       
    98     /**
       
    99      * Show confirmation dialog when save number to SIM
       
   100      *
       
   101      * @since S60 v5.2
       
   102      */
       
   103     virtual void ShowSaveToSimNote();
       
   104 
       
   105     /**
       
   106      * Show confirmation dialog when save video number
       
   107      *
       
   108      * @since S60 v5.2
       
   109      */
       
   110     virtual void ShowVideoSavedNote();
       
   111 
       
   112     /**
       
   113      * show an error dialog for invalid number
       
   114      *
       
   115      * @since S60 v5.2
       
   116      */
       
   117     virtual void ShowInvalidNumberNote();
       
   118 
       
   119     /**
       
   120      * show an error dialog for invalid number
       
   121      *
       
   122      * @since S60 v5.2
       
   123      */
       
   124     virtual void ShowInvalidWarningNote();
       
   125 
       
   126     /**
       
   127      * To get mailbox entry value
       
   128      * Leaves if Symbian OS error code
       
   129      *
       
   130      * @since S60 v5.2
       
   131      * @param aType TVmbxType type
       
   132      */
       
   133      virtual void ShowSaveEmptyNote( const TVmbxType& aType );
       
   134 
       
   135 private:
       
   136 
       
   137     /** C++ default constructor.
       
   138     *
       
   139     * @since S60 v5.2
       
   140     */
       
   141     CVmbxUiHandler();
       
   142 
       
   143     /**
       
   144      * C++  Two-phased constructor.
       
   145      * @since S60 v5.2
       
   146      */
       
   147     void ConstructL();
       
   148 
       
   149 private:  // data
       
   150 
       
   151     /**
       
   152      * Dialog manage
       
   153      * Own
       
   154      */
       
   155     VmbxQtUiHandler* iHandler;
       
   156 
       
   157     };
       
   158 
       
   159 #endif  // VMBXENGINEQTUI_H