phoneapp/phoneuivoipextension/inc/tphonecmdparamselector.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2008 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 *   See class description.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef TPHONECMDPARAMSELECTOR_H
       
    20 #define TPHONECMDPARAMSELECTOR_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "tphonecommandparamvoip.h"
       
    24 
       
    25 // DATA TYPES
       
    26 
       
    27 /**
       
    28 * Phone number types
       
    29 *
       
    30 * EPhoneNumberTypeNotFound - phone number's type was not found
       
    31 * EPhoneNumberTypeCS - CS call can be made to the phone number
       
    32 * EPhoneNumberTypeVideo - video call can be made to the phone number
       
    33 * EPhoneCallTypeVoip - voip call can be made to the number/address
       
    34 */
       
    35 enum TPhoneSsCallType
       
    36 {
       
    37     EPhoneCallTypeNotFound = -1,
       
    38     EPhoneCallTypeCS = 0,
       
    39     EPhoneCallTypeVideo,
       
    40     EPhoneCallTypeVoip
       
    41 };
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 /**
       
    46 *  A service selection parameter class.
       
    47 *  
       
    48 */
       
    49 class TPhoneCmdParamSelector : public TPhoneUICommandParam
       
    50     {
       
    51     public:  
       
    52         
       
    53         /**
       
    54         * C++ default constructor.
       
    55         */
       
    56         IMPORT_C TPhoneCmdParamSelector();
       
    57 
       
    58     public: 
       
    59         
       
    60         /**
       
    61         * Sets the service id.
       
    62         * @param aServiceId Service id
       
    63         */
       
    64         IMPORT_C void SetServiceId( const TUint aServiceId );
       
    65 
       
    66         /**
       
    67         * Returns the service id.
       
    68         * @return Returns the service id.
       
    69         */
       
    70         IMPORT_C TUint ServiceId();
       
    71         
       
    72         /**
       
    73         * Sets the call type.
       
    74         * @param aCallType call type
       
    75         */
       
    76         IMPORT_C void SetCallType( TPhoneSsCallType aCallType );
       
    77         
       
    78         /**
       
    79         * Returns the call type.
       
    80         * @return phone call type
       
    81         */
       
    82         IMPORT_C TPhoneSsCallType CallType();
       
    83         
       
    84         /**
       
    85         * Sets the registration status.
       
    86         * @param aEnabled registration status to be set.
       
    87         */
       
    88         IMPORT_C void SetRegStatus( TBool aEnabled );
       
    89         
       
    90         /**
       
    91         * Returns the registration status.
       
    92         * @return ETrue if service registered.
       
    93         */
       
    94         IMPORT_C TBool RegStatus();
       
    95 
       
    96 
       
    97     private:   
       
    98 
       
    99         /**
       
   100         * The service id
       
   101         */
       
   102         TUint iServiceId;
       
   103         
       
   104         /**
       
   105         * The call type
       
   106         */
       
   107         TPhoneSsCallType iCallType;
       
   108         
       
   109         /**
       
   110         * Registration status
       
   111         */
       
   112         TBool iEnabled;
       
   113     };
       
   114 
       
   115 #endif      // TPHONECMDPARAMSELECTOR_H   
       
   116 // End of File