vtprotocolsstub/src/cvtuserinput.cpp
changeset 0 ed9695c8bcbe
child 14 856ae1b15d98
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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:  VT User input implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #include "mvtprotocolhandler.h"
       
    19 #include "cvtuserinput.h"
       
    20 
       
    21 #ifdef _DEBUG
       
    22 #    define __IF_DEBUG(t) {RDebug::t;}
       
    23 #else
       
    24 #    define __IF_DEBUG(t)
       
    25 #endif
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CVTUserInputDtmf::ConstructL
       
    29 // Constructor.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 void CVTUserInputDtmf::ConstructL(TUint8 aTone)
       
    33     {
       
    34     __IF_DEBUG(Print(_L("VTProto: CVTUserInputDtmf::ConstructL<")));	
       
    35     __IF_DEBUG(Print(_L("VTProto: CVTUserInputDtmf::ConstructL>")));
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CVTUserInputDtmf::CVTUserInputDtmf
       
    40 // Constructor.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 CVTUserInputDtmf* CVTUserInputDtmf::NewL(TUint8 aTone)
       
    44     {
       
    45     __IF_DEBUG(Print(_L("VTProto: CVTUserInputDtmf::NewL<")));	
       
    46     CVTUserInputDtmf* self = new (ELeave)CVTUserInputDtmf();
       
    47     CleanupStack::PushL(self);
       
    48     self->ConstructL(aTone);
       
    49     CleanupStack::Pop();
       
    50     __IF_DEBUG(Print(_L("VTProto: CVTUserInputDtmf::NewL>")));
       
    51     return self;
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CVTUserInputDtmf::~CVTUserInputDtmf
       
    56 // Destructor.
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 CVTUserInputDtmf::~CVTUserInputDtmf()
       
    60     {
       
    61     __IF_DEBUG(Print(_L("VTProto: CVTUserInputDtmf::~CVTUserInputDtmf<")));	
       
    62     __IF_DEBUG(Print(_L("VTProto: CVTUserInputDtmf::~CVTUserInputDtmf>")));
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CVTUserInputDtmf::GetType
       
    67 // Virtual function to return the user input type
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 TUserInputType CVTUserInputDtmf::GetType()
       
    71     {
       
    72     return EVtUiiDTFM;
       
    73     }
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CVTUserInputDtmf::ConstructL
       
    77 // Constructor.
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 void CVTUserInputAlphanumeric::ConstructL(TUint8 aTone)
       
    81     {
       
    82     __IF_DEBUG(Print(_L("VTProto: CVTUserInputAlphanumeric::ConstructL<")));	
       
    83     __IF_DEBUG(Print(_L("VTProto: CVTUserInputAlphanumeric::ConstructL>")));
       
    84     }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CVTUserInputAlphanumeric::CVTUserInputAlphanumeric
       
    88 // Constructor.
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 CVTUserInputAlphanumeric* CVTUserInputAlphanumeric::NewL(TUint8 aTone)
       
    92     {
       
    93     __IF_DEBUG(Print(_L("VTProto: CVTUserInputAlphanumeric::NewL<")));
       
    94     CVTUserInputAlphanumeric* self = new (ELeave)CVTUserInputAlphanumeric();
       
    95     CleanupStack::PushL(self);
       
    96     self->ConstructL(aTone);
       
    97     CleanupStack::Pop();
       
    98     __IF_DEBUG(Print(_L("VTProto: CVTUserInputAlphanumeric::NewL>")));   
       
    99     return self;
       
   100     }
       
   101 
       
   102 // -----------------------------------------------------------------------------
       
   103 // CVTUserInputAlphanumeric::~CVTUserInputAlphanumeric
       
   104 // Destructor.
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 CVTUserInputAlphanumeric::~CVTUserInputAlphanumeric()
       
   108     {
       
   109     __IF_DEBUG(Print(_L("VTProto: CVTUserInputAlphanumeric::~CVTUserInputAlphanumeric<")));		
       
   110     __IF_DEBUG(Print(_L("VTProto: CVTUserInputAlphanumeric::~CVTUserInputAlphanumeric>")));		
       
   111     }
       
   112 
       
   113 // -----------------------------------------------------------------------------
       
   114 // CVTUserInputAlphanumeric::GetType
       
   115 // Virtual function to return the user input type.
       
   116 // -----------------------------------------------------------------------------
       
   117 //
       
   118 TUserInputType CVTUserInputAlphanumeric::GetType()
       
   119     {
       
   120     return EVtUiiAlphaNumeric;
       
   121     }
       
   122 // end of file