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