pkiutilities/securitydialognotifiersrv/inc/securitydialognotifiersession.h
branchRCL_3
changeset 22 03674e5abf46
parent 21 09b1ac925e3f
child 23 94da73d93b58
equal deleted inserted replaced
21:09b1ac925e3f 22:03674e5abf46
     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 );
       
    52         void ServerAuthenticationFailureL( const RMessage2& aMessage );
       
    53         void GetInputBufferL( const RMessage2& aMessage );
       
    54 
       
    55     private:    // data
       
    56         HBufC8* iInputBuffer;
       
    57         CSecurityDialogOperation* iOperationHandler;
       
    58     };
       
    59 
       
    60 #endif  // SECURITYDIALOGNOTIFIERSESSION_H
       
    61