18
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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: IETF SIMPLE Protocol implementation for XIMP Framework
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include "presenceplugincontactstate.h"
|
|
20 |
#include "presenceplugincontactstatehandler.h"
|
|
21 |
|
|
22 |
|
|
23 |
// ======== MEMBER FUNCTIONS ========
|
|
24 |
|
|
25 |
// ---------------------------------------------------------------------------
|
|
26 |
// CPresencepluginContactState::CPresencepluginContactState
|
|
27 |
// ---------------------------------------------------------------------------
|
|
28 |
//
|
|
29 |
CPresencepluginContactState::CPresencepluginContactState(
|
|
30 |
MPresenceContactsContextBase& aContext,
|
|
31 |
CPresencePluginContactStateHandler& aStateHandler )
|
|
32 |
: iContext( &aContext ), iStateHandler( &aStateHandler )
|
|
33 |
{
|
|
34 |
}
|
|
35 |
|
|
36 |
|
|
37 |
// ---------------------------------------------------------------------------
|
|
38 |
// CPresencepluginContactState::~CPresencepluginContactState
|
|
39 |
// ---------------------------------------------------------------------------
|
|
40 |
//
|
|
41 |
CPresencepluginContactState::~CPresencepluginContactState()
|
|
42 |
{
|
|
43 |
}
|
|
44 |
|
|
45 |
|
|
46 |
// ---------------------------------------------------------------------------
|
|
47 |
// CPresencepluginContactState::Complete
|
|
48 |
// ---------------------------------------------------------------------------
|
|
49 |
//
|
|
50 |
void CPresencepluginContactState::Complete()
|
|
51 |
{
|
|
52 |
iStateHandler->ProgressToNextState();
|
|
53 |
}
|
|
54 |
|
|
55 |
|
|
56 |
// ---------------------------------------------------------------------------
|
|
57 |
// CPresencepluginContactState::Complete
|
|
58 |
// ---------------------------------------------------------------------------
|
|
59 |
//
|
|
60 |
void CPresencepluginContactState::Error( TInt aError )
|
|
61 |
{
|
|
62 |
iStateHandler->Complete( aError );
|
|
63 |
}
|