phoneapp/phoneuiview/inc/cphonevmbxhandler.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2007 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:  It provides voice/video mailbox related functionality.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHONEVMBXGHANDLER_H
       
    20 #define CPHONEVMBXGHANDLER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <vmnumber.h>
       
    25  
       
    26 // CLASS DECLARATION
       
    27 class CPhApEVmbxMonitor; 
       
    28 /**
       
    29 *  Engine for voice/video mailbox
       
    30 *
       
    31 */
       
    32 class CPhoneVmbxHandler :public CBase
       
    33     {
       
    34     public:  // Constructors and destructor
       
    35      
       
    36         static CPhoneVmbxHandler* NewL(); 
       
    37              
       
    38         
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         virtual ~CPhoneVmbxHandler();
       
    43 
       
    44     public: // New functions
       
    45  
       
    46         /**
       
    47         * Checks value of CR key KTelVideoMbxKey. 
       
    48         * @return True if key 2 is assigned for videomailbox.
       
    49         */
       
    50         TBool IsStraightCallToVideoMailBox() const;  
       
    51         
       
    52         /**
       
    53         * Checks value of CR key KVideoMbxSupport. 
       
    54         * @return ETrue if Videomailbox configured.
       
    55         */        
       
    56         TBool IsVideoMailBoxConfigured() const;
       
    57   
       
    58         /**
       
    59         * Perform speed dialling, either by speed dialling or one key dialling
       
    60         * @param aSpdLocation the speed dialling location
       
    61         * @param aNumber The number stored in the location
       
    62         * @return error code
       
    63         */
       
    64         TInt GetStraightSpeedDialNumber( TInt aSpdLocation, 
       
    65             TDes& aNumber );
       
    66     
       
    67         /**
       
    68         * Get type of mailbox
       
    69         */
       
    70         TInt GetMailboxType();
       
    71         
       
    72         /**
       
    73         * Launches the mailbox.
       
    74         *
       
    75         * @param aMailboxType Voice, Video or Voip mailbox.               
       
    76         * @param aNumber phonenumber.        
       
    77         * @return error code.
       
    78 		* @since 3.2
       
    79         */            
       
    80         TInt LaunchMbx( TInt aMailboxType, TDes& aNumber ); 
       
    81         
       
    82         
       
    83        /**
       
    84         * Launches the mailbox type query.
       
    85         *        
       
    86         * @return select mail box type.
       
    87         * @param serviceId Contains the selected serviceId is on return
       
    88         * @since 3.2
       
    89         */ 
       
    90         TInt SelectMailboxTypeL( TUint& aServiceId );
       
    91         
       
    92         /**
       
    93          * Cancels the mailbox query.
       
    94          *        
       
    95          * @since 5.0
       
    96          */         
       
    97         void CancelVmbx();
       
    98 
       
    99     private:
       
   100 
       
   101         /**
       
   102         * C++ constructor.
       
   103         */
       
   104         CPhoneVmbxHandler();
       
   105     
       
   106         /**
       
   107         * Symbian OS constructor.
       
   108         */
       
   109         void ConstructL();
       
   110         
       
   111     private: // new functions
       
   112     
       
   113         /**
       
   114         * Voice mailbox.
       
   115         *      
       
   116         * @param aNumber phonenumber.           
       
   117         * @return error code.
       
   118 		* @since 3.2
       
   119         */           
       
   120         TInt CSVmbxL( TDes& aNumber );
       
   121 
       
   122         /**
       
   123         * VoIP mailbox.
       
   124         *
       
   125         * @param aNumber phonenumber.        
       
   126         * @return error code.
       
   127 		* @since 3.2
       
   128         */                        
       
   129         TInt IPVmbxL( TDes& aNumber ); 
       
   130                     
       
   131         /**
       
   132         * Video mailbox.
       
   133         *
       
   134         * @param aNumber phonenumber.        
       
   135         * @return error code.
       
   136 		* @since 3.2
       
   137         */                        
       
   138         TInt VideoVmbxL( TDes& aNumber );   
       
   139                                
       
   140         /**
       
   141         * Returns current networkMode.
       
   142         *
       
   143         * @return Network mode.
       
   144 		* @since 3.2
       
   145         */                                 
       
   146         TInt NetworkMode();                       
       
   147 
       
   148         /**
       
   149         * Is CSVideoTelephony feature enabled.
       
   150         *
       
   151         * @return ETrue is feature enabled otherwise EFalse.
       
   152 		* @since 3.2
       
   153         */ 
       
   154         TBool IsCsVideoTelFeature();
       
   155         
       
   156         /**
       
   157         * Check if location is videombx '2' and videombx is configured.
       
   158         *
       
   159         * @param speeddialing location
       
   160         * @return ETrue is location is '2' and videoMbx configured
       
   161 		* otherwise EFalse.
       
   162 		* @since 3.2
       
   163         */ 
       
   164         TBool IsVideoMbxLocationAndConfigured( TInt aSpdLocation ) const;
       
   165         
       
   166          /**
       
   167         * Construct vmbx connection
       
   168         */
       
   169         void CreateVmbxL();
       
   170         
       
   171     private:    // Data
       
   172           
       
   173         //Indicates if CSVideoTelephony feature is enabled.
       
   174         TBool iCsVideoTelFeature;
       
   175         
       
   176         // Mailbox
       
   177         RVmbxNumber* iVmbx;
       
   178          
       
   179         // Type of mailbox 
       
   180         TInt iMailboxType;
       
   181 
       
   182         // ServiceId
       
   183         TUint iServiceId;
       
   184     };
       
   185 
       
   186 #endif      // CPHONEVMBXGHANDLER_H   
       
   187             
       
   188 // End of File