| Start/ | End/ | |||
| True | False | - | Line | Source |
| 1 | /* | |||
| 2 | * =========================================================================== | |||
| 3 | * Name : cvimpstcmdlogin.cpp | |||
| 4 | * Part of : IMUiServiceTab/vimpstcmdprocess | |||
| 5 | * Description : | |||
| 6 | * Version : %version: 2 % | |||
| 7 | * | |||
| 8 | * Copyright © 2008 Nokia. All rights reserved. | |||
| 9 | * This material, including documentation and any related computer | |||
| 10 | * programs, is protected by copyright controlled by Nokia. All | |||
| 11 | * rights are reserved. Copying, including reproducing, storing, | |||
| 12 | * adapting or translating, any or all of this material requires the | |||
| 13 | * prior written consent of Nokia. This material also contains | |||
| 14 | * confidential information which may not be disclosed to others | |||
| 15 | * without the prior written consent of Nokia. | |||
| 16 | * ============================================================================ | |||
| 17 | */ | |||
| 18 | ||||
| 19 | // INCLUDE FILES | |||
| 20 | #include "cvimpstcmdlogin.h" | |||
| 21 | ||||
| 22 | #include "vimpstcmd.hrh" | |||
| 23 | #include "mvimpstcmdobserver.h" | |||
| 24 | #include "vimpstdebugprint.h" | |||
| 25 | ||||
| 26 | #include <e32def.h> | |||
| 27 | #include "mvimpstengine.h" | |||
| 28 | ||||
| 29 | // Constants | |||
| 30 | ||||
| 31 | // -------------------------------------------------------------------------- | |||
| 32 | // CVIMPSTCmdLogin::CVIMPSTCmdLogin | |||
| 33 | // -------------------------------------------------------------------------- | |||
| 34 | // | |||
| 4 | 4 | 35 | CVIMPSTCmdLogin::CVIMPSTCmdLogin( | |
| 36 | const TInt aCommandId ,TUint32 aServiceID, | |||
| 37 | MVIMPSTEngine& aEngine) : | |||
| 38 | iCommandId( aCommandId ), | |||
| 39 | iServiceId( aServiceID ), | |||
| 40 | iEngine(aEngine) | |||
| 41 | { | |||
| 42 | } | |||
| 43 | ||||
| 44 | // -------------------------------------------------------------------------- | |||
| 45 | // CVIMPSTCmdLogin::~CVIMPSTCmdLogin | |||
| 46 | // -------------------------------------------------------------------------- | |||
| 47 | // | |||
| 4 | 4 | 48 | CVIMPSTCmdLogin::~CVIMPSTCmdLogin() | |
| 49 | { | |||
| 50 | ||||
| 51 | } | |||
| 52 | ||||
| 53 | // -------------------------------------------------------------------------- | |||
| 54 | // CVIMPSTCmdLogin::NewL | |||
| 55 | // -------------------------------------------------------------------------- | |||
| 56 | // | |||
| 4 | 0 | 57 | CVIMPSTCmdLogin* CVIMPSTCmdLogin::NewL( | |
| 58 | const TInt aCommandId,TUint32 aServiceID, | |||
| 59 | MVIMPSTEngine& aEngine) | |||
| 60 | { | |||
| 61 | CVIMPSTCmdLogin* self = new (ELeave ) CVIMPSTCmdLogin( aCommandId ,aServiceID, aEngine); | |||
| 62 | self->ConstructL(); //use contsurctL if necessary | |||
| 4 | 63 | return self; | ||
| 64 | } | |||
| 65 | // -------------------------------------------------------------------------- | |||
| 66 | // CVIMPSTCmdLogin::ConstructL | |||
| 67 | // -------------------------------------------------------------------------- | |||
| 68 | // | |||
| 4 | 4 | 69 | void CVIMPSTCmdLogin::ConstructL() | |
| 70 | { | |||
| 71 | ||||
| 72 | } | |||
| 73 | ||||
| 74 | // -------------------------------------------------------------------------- | |||
| 75 | // CVIMPSTCmdLogin::ExecuteLD | |||
| 76 | // -------------------------------------------------------------------------- | |||
| 77 | // | |||
| 4 | 4 | 78 | void CVIMPSTCmdLogin::ExecuteLD() | |
| 79 | { | |||
| 80 | CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd::ExecuteLD"); | |||
| 81 | //push to the cleanupstack | |||
| 82 | CleanupStack::PushL( this ); | |||
| 83 | ||||
| 84 | //call login | |||
| 85 | iEngine.Login(); | |||
| 86 | ||||
| 87 | CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd:: CommandFinished"); | |||
| 88 | ||||
| 2 | 2 | 89 | if(iObserver) | |
| 90 | { | |||
| 91 | iObserver->CommandFinishedL(*this); | |||
| 92 | } | |||
| 93 | CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd:: CommandFinished"); | |||
| 94 | CleanupStack::PopAndDestroy(); | |||
| 95 | CHAT_DP_FUNC_DONE("CVIMPSTEnableServiceCmd::ExecuteLD"); | |||
| 96 | } | |||
| 97 | ||||
| 98 | ||||
| 99 | // -------------------------------------------------------------------------- | |||
| 100 | // CVIMPSTCmdLogin::AddObserver | |||
| 101 | // -------------------------------------------------------------------------- | |||
| 102 | // | |||
| 2 | 2 | 103 | void CVIMPSTCmdLogin::AddObserver( MVIMPSTCmdObserver& aObserver ) | |
| 104 | { | |||
| 105 | // store the observer to notify the command completion | |||
| 106 | iObserver = &aObserver; | |||
| 107 | } | |||
| 108 | ||||
| 109 | ||||
| 110 | // -------------------------------------------------------------------------- | |||
| 111 | // CVIMPSTCmdLogin::CommandId | |||
| 112 | // -------------------------------------------------------------------------- | |||
| 113 | // | |||
| 4 | 0 | 114 | TInt CVIMPSTCmdLogin::CommandId() const | |
| 115 | { | |||
| 4 | 116 | return iCommandId; | ||
| 117 | } | |||
| 118 | ||||
| 119 | // -------------------------------------------------------------------------- | |||
| 120 | // CVIMPSTCmdLogin::Result | |||
| 121 | // -------------------------------------------------------------------------- | |||
| 122 | // | |||
| 2 | 0 | 123 | TInt CVIMPSTCmdLogin::Result() const | |
| 124 | { | |||
| 125 | //return valid data regd the command operation | |||
| 126 | //must be freed in Dtor | |||
| 2 | 127 | return 0; | ||
| 128 | } | |||
| 129 | ||||
| 130 | // End of File | |||
| ***TER 100% (13/13) of SOURCE FILE cvimpstcmdlogin.cpp | ||||