vmbx/vmbxengine/inc/vmbxuiutilities.h
changeset 19 e44a8c097b15
parent 12 ae8abd0db65c
child 27 7eb70891911c
equal deleted inserted replaced
15:d7fc66ccd6fb 19:e44a8c097b15
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    42 
    42 
    43 public:
    43 public:
    44 
    44 
    45     /**
    45     /**
    46      * Two-phased constructor
    46      * Two-phased constructor
    47      * @since S60 v5.2
       
    48      */
    47      */
    49     static CVmbxUiUtilities* NewL();
    48     static CVmbxUiUtilities* NewL();
    50 
    49 
    51     /**
    50     /**
    52      * Destructor.
    51      * Destructor.
    53      * @since S60 v5.2
       
    54      */
    52      */
    55     ~CVmbxUiUtilities();
    53     ~CVmbxUiUtilities();
    56 
    54 
    57     /**
    55     /**
    58      * Show mailbox query
    56      * Show mailbox query
    68 
    66 
    69     /**
    67     /**
    70      * Show mailbox query dialog
    68      * Show mailbox query dialog
    71      * Leaves if user cancel selected.
    69      * Leaves if user cancel selected.
    72      *
    70      *
    73      * @since S60 v5.2
       
    74      * @param aType in TVmbxType type
    71      * @param aType in TVmbxType type
    75      * @param aMode Tin VmbxQueryMode mode
    72      * @param aMode Tin VmbxQueryMode mode
    76      * @param aNumber the voice mailbox number
    73      * @param aNumber the voice mailbox number
    77      * @param aResult out the result of dialog
    74      * @param aResult out the result of dialog
    78      */
    75      */
    79     void ShowQueryDialogL( const TVmbxType& aType,
    76     void ShowQueryDialogL( const TVmbxType& aType,
    80         const TVmbxQueryMode & aMode, TDes& aNumber, TInt& aResult );
    77         const TVmbxQueryMode & aMode, TDes& aNumber, TInt& aResult );
    81 
    78 
    82     /**
    79     /**
    83      * Show confirmation dialog when save number to phone
    80      * Show informationd note
    84      *
    81      *
    85      * @since S60 v5.2
    82      * @param aType in TVmbxNoteType type
    86      */
    83      */
    87     void ShowSaveToPhoneNote();
    84     void ShowInformationdNoteL(const TVmbxNoteType aType);
    88 
    85  
    89     /**
       
    90      * Show confirmation dialog when save number to SIM
       
    91      *
       
    92      * @since S60 v5.2
       
    93      */
       
    94     void ShowSaveToSimNote();
       
    95 
       
    96     /**
       
    97      * Show confirmation dialog when save video number
       
    98      *
       
    99      * @since S60 v5.2
       
   100      */
       
   101     void ShowVideoSavedNote();
       
   102 
    86 
   103     /**
    87     /**
   104      * Show define number in selection dialog
    88      * Show define number in selection dialog
   105      * Leaves if user cancel selected.
    89      * Leaves if user cancel selected.
   106      *
    90      *
   107      * @since S60 v5.2
       
   108      * @param in aType vmbx type
    91      * @param in aType vmbx type
   109      * @param out aResult the result of dialog
    92      * @param out aResult the result of dialog
   110      */
    93      */
   111     void ShowDefineSelectionDialogL( TVmbxType& aType, TInt& aResult );
    94     void ShowDefineSelectionDialog( TVmbxType& aType, TInt& aResult );
   112 
    95 
   113     /**
    96     /**
   114      * Show call number in selection dialog
    97      * Show call number in selection dialog
   115      * Leaves if user cancel selected.
    98      * Leaves if user cancel selected.
   116      *
    99      *
   117      * @since S60 v5.2
       
   118      * @param in aArray array of the defined voice mailbox entry
   100      * @param in aArray array of the defined voice mailbox entry
   119      * @param in aIcons icons of the defined voice mailbox
   101      * @param in aIcons icons of the defined voice mailbox
   120      * @param out aParams the type TVoiceMailboxParams which should include
   102      * @param out aParams the type TVoiceMailboxParams which should include
   121      *          the service id and the type of seclected TVmbxType
   103      *          the service id and the type of seclected TVmbxType
   122      * @param out aResult the result user seclected
   104      * @param out aResult the result user seclected
   127                 TVoiceMailboxParams& aParams, TInt& aResult );
   109                 TVoiceMailboxParams& aParams, TInt& aResult );
   128 
   110 
   129     /**
   111     /**
   130      * Tries to close all open dialogs
   112      * Tries to close all open dialogs
   131      *
   113      *
   132      * @since S60 v5.2
       
   133      */
   114      */
   134     void DismissDialogL();
   115     void DismissDialogL();
   135 
   116 
   136     /**
       
   137      * To get mailbox entry value
       
   138      * Leaves if Symbian OS error code
       
   139      *
       
   140      * @since S60 v5.2
       
   141      * @param aType TVmbxType type
       
   142      */
       
   143     void ShowSaveEmptyNoteL( const TVmbxType& aType );
       
   144 
   117 
   145     /**
   118     /**
   146      * Get Mailbox type default image.
   119      * Get Mailbox type default image.
   147      * If get unseccessful, Leaves with Symbian OS error code
   120      * If get unseccessful, Leaves with Symbian OS error code
   148      *
   121      *
   149      * @since S60 v5.2
       
   150      * @param aParams Mailbox type for which image is needed.
   122      * @param aParams Mailbox type for which image is needed.
   151      * @return aImage New image. Ownership is transferred.
   123      * @return aImage New image. Ownership is transferred.
   152      */
   124      */
   153     //CGulIcon* GetVmbxImageL( const TVoiceMailboxParams& aParams );
   125     //CGulIcon* GetVmbxImageL( const TVoiceMailboxParams& aParams );
   154 
   126 
   155     /**
   127     /**
   156      * Show error dialog
   128      * Show not allowed editing dialog
   157      *
   129      *
   158      * @since S60 v5.2
       
   159      */
   130      */
   160     void ShowErrorDialogL();
   131     void ShowNotAllowedEditingDialogL();
   161 
   132 
   162     /**
   133     /**
   163      * Show invalid or warning dialog
   134      * Show invalid or warning dialog
   164      *
   135      *
   165      * @since S60 v5.2
       
   166      */
   136      */
   167     void ShowInvalidWarningDialogL();
   137     void ShowInvalidWarningDialogL();
   168 
   138 
   169 
   139 
   170 private: // data
   140 private: // data
   174      */
   144      */
   175     CVmbxUiUtilities();
   145     CVmbxUiUtilities();
   176 
   146 
   177     /**
   147     /**
   178      * C++  Two-phased constructor.
   148      * C++  Two-phased constructor.
   179      * @since S60 v5.2
       
   180      */
   149      */
   181     void ConstructL();
   150     void ConstructL();
   182 
   151 
   183 
   152 
   184     /**
   153     /**