48
|
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: Security dialog notifier server session
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef SECURITYDIALOGNOTIFIERSESSION_H
|
|
19 |
#define SECURITYDIALOGNOTIFIERSESSION_H
|
|
20 |
|
|
21 |
#include <e32base.h> // CSession2
|
|
22 |
#include "securitydialogoperationobserver.h" // MSecurityDialogOperationObserver
|
|
23 |
|
|
24 |
class CSecurityDialogNotifierServer;
|
|
25 |
class CSecurityDialogOperation;
|
|
26 |
|
|
27 |
|
|
28 |
/**
|
|
29 |
* CSecurityDialogNotifierSession is the session object in security
|
|
30 |
* dialog notifier server (CSecurityDialogNotifierServer).
|
|
31 |
*/
|
|
32 |
NONSHARABLE_CLASS( CSecurityDialogNotifierSession ) : public CSession2,
|
|
33 |
public MSecurityDialogOperationObserver
|
|
34 |
{
|
|
35 |
public: // constructor and destructor
|
|
36 |
static CSecurityDialogNotifierSession* NewL();
|
|
37 |
~CSecurityDialogNotifierSession();
|
|
38 |
|
|
39 |
public: // from CSession2
|
|
40 |
void CreateL();
|
|
41 |
void ServiceL( const RMessage2& aMessage );
|
|
42 |
|
|
43 |
public: // from MSecurityDialogOperationObserver
|
|
44 |
void OperationComplete();
|
|
45 |
|
|
46 |
private: // new functions
|
|
47 |
CSecurityDialogNotifierSession();
|
|
48 |
void ConstructL();
|
|
49 |
CSecurityDialogNotifierServer& Server();
|
|
50 |
void DispatchMessageL( const RMessage2& aMessage );
|
|
51 |
TBool IsOperationCancelled( const RMessage2& aMessage );
|
53
|
52 |
void GetInputBufferL( const RMessage2& aMessage );
|
48
|
53 |
void ServerAuthenticationFailureL( const RMessage2& aMessage );
|
53
|
54 |
void BasicPinOperationL( const RMessage2& aMessage );
|
48
|
55 |
|
|
56 |
private: // data
|
|
57 |
HBufC8* iInputBuffer;
|
|
58 |
CSecurityDialogOperation* iOperationHandler;
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif // SECURITYDIALOGNOTIFIERSESSION_H
|
|
62 |
|