CTC++ Coverage Report - Execution Profile #25/43
Directory Summary | Files Summary | Functions Summary | Execution Profile
To files: First | Previous | Next | Last | Index | No Index
File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcancellogin.cpp
Instrumentation mode: function-decision
TER: 100 % ( 12/ 12)

Start/ | End/ |  |  |
True | False | - | Line | Source
| 1 | /*
| 2 | * ===========================================================================
| 3 | * Name : cvimpstcmdcancellogin.cpp
| 4 | * Part of : IMUiServiceTab/vimpstcmdprocess
| 5 | * Description : cancel login command implementation
| 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 |
| 21 | #include "cvimpstcmdcancellogin.h"
| 22 |
| 23 | #include "vimpstcmd.hrh"
| 24 | #include "mvimpstcmdobserver.h"
| 25 | #include "vimpstdebugprint.h"
| 26 |
| 27 | #include <e32def.h>
| 28 | #include "mvimpstengine.h"
| 29 |
| 30 |
| 31 | // --------------------------------------------------------------------------
| 32 | // CVIMPSTCmdLogout::CVIMPSTCmdLogout
| 33 | // --------------------------------------------------------------------------
| 34 | //
4 | 4 |  | 35 | CVIMPSTCmdCancelLogin::CVIMPSTCmdCancelLogin( const TInt aCommandId,
| 36 | MVIMPSTEngine& aEngine) :
| 37 | iCommandId( aCommandId ),
| 38 | iEngine(aEngine)
| 39 | {
| 40 | }
| 41 |
| 42 | // --------------------------------------------------------------------------
| 43 | // CVIMPSTCmdCancelLogin::~CVIMPSTCmdCancelLogin
| 44 | // --------------------------------------------------------------------------
| 45 | //
4 | 4 |  | 46 | CVIMPSTCmdCancelLogin::~CVIMPSTCmdCancelLogin()
| 47 | {
| 48 | }
| 49 |
| 50 | // --------------------------------------------------------------------------
| 51 | // CVIMPSTCmdCancelLogin::NewL
| 52 | // --------------------------------------------------------------------------
| 53 | //
4 | 0 |  | 54 | CVIMPSTCmdCancelLogin* CVIMPSTCmdCancelLogin::NewL(
| 55 | const TInt aCommandId,
| 56 | MVIMPSTEngine& aEngine)
| 57 | {
| 58 | // return the object created
| 59 | CHAT_DP_FUNC_ENTER("CVIMPSTCmdCancelLogin::NewL");
4 |  |  | 60 | return new (ELeave ) CVIMPSTCmdCancelLogin( aCommandId , aEngine);
| 61 | }
| 62 |
| 63 | // --------------------------------------------------------------------------
| 64 | // CVIMPSTCmdCancelLogin::ExecuteLD
| 65 | // --------------------------------------------------------------------------
| 66 | //
4 | 4 |  | 67 | void CVIMPSTCmdCancelLogin::ExecuteLD()
| 68 | {
| 69 | CHAT_DP_FUNC_ENTER("CVIMPSTCmdCancelLogin::ExecuteLD");
| 70 | //push to the cleanupstack
| 71 | CleanupStack::PushL( this );
| 72 |
| 73 | // now call logout for cancel login
| 74 | // protocol adaptation has to take care of this
| 75 | iEngine.LogoutL();
| 76 |
| 77 | CHAT_DP_FUNC_ENTER("CVIMPSTCmdCancelLogin:: CommandFinished");
| 78 |
2 | 2 |  | 79 | if(iObserver)
| 80 | {
| 81 | iObserver->CommandFinishedL(*this);
| 82 | }
| 83 | CHAT_DP_FUNC_ENTER("CVIMPSTCmdCancelLogin:: CommandFinished");
| 84 | CleanupStack::PopAndDestroy();
| 85 | CHAT_DP_FUNC_DONE("CVIMPSTCmdCancelLogin::ExecuteLD");
| 86 | }
| 87 |
| 88 |
| 89 | // --------------------------------------------------------------------------
| 90 | // CVIMPSTCmdCancelLogin::AddObserver
| 91 | // --------------------------------------------------------------------------
| 92 | //
2 | 2 |  | 93 | void CVIMPSTCmdCancelLogin::AddObserver( MVIMPSTCmdObserver& aObserver )
| 94 | {
| 95 | // store the observer to notify the command completion
| 96 | iObserver = &aObserver;
| 97 | }
| 98 |
| 99 |
| 100 | // --------------------------------------------------------------------------
| 101 | // CVIMPSTCmdCancelLogin::CommandId
| 102 | // --------------------------------------------------------------------------
| 103 | //
4 | 0 |  | 104 | TInt CVIMPSTCmdCancelLogin::CommandId() const
| 105 | {
4 |  |  | 106 | return iCommandId;
| 107 | }
| 108 |
| 109 | // --------------------------------------------------------------------------
| 110 | // CVIMPSTCmdCancelLogin::Result
| 111 | // --------------------------------------------------------------------------
| 112 | //
2 | 0 |  | 113 | TInt CVIMPSTCmdCancelLogin::Result() const
| 114 | {
| 115 | // return KErrNone since iEngine.Logout() doesnot return any error value
2 |  |  | 116 | return KErrNone;
| 117 | }
| 118 |
| 119 | // End of File
***TER 100% (12/12) of SOURCE FILE cvimpstcmdcancellogin.cpp

Directory Summary | Files Summary | Functions Summary | Execution Profile
To files: First | Previous | Next | Last | Top | Index | No Index