pkiutilities/securitydialognotifier/inc/securitydialognotifiersrv.h
branchRCL_3
changeset 50 03674e5abf46
parent 49 09b1ac925e3f
child 54 94da73d93b58
equal deleted inserted replaced
49:09b1ac925e3f 50: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, client-side API.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SECURITYDIALOGNOTIFIERSRV_H
       
    19 #define SECURITYDIALOGNOTIFIERSRV_H
       
    20 
       
    21 #include <e32std.h>             // RSessionBase
       
    22 #include <secdlgimpldefs.h>     // TSecurityDialogOperation
       
    23 
       
    24 
       
    25 /**
       
    26  * Security Dialog Notifier Server API
       
    27  * Security dialogs provide TSecurityDialogOperation functionality defined in secdlgimpldefs.h.
       
    28  * Implementation consist of two components: a notifier DLL (CSecurityDialogNotifier, ECom DLL)
       
    29  * and a server executable (CSecurityDialogNotifierSrv). CSecurityDialogNotifier runs in UIKON
       
    30  * server that has limited capabilities. It passes the requests to the server component
       
    31  * (CSecurityDialogNotifierSrv) that provides the actual functionality.
       
    32  */
       
    33 NONSHARABLE_CLASS( RSecurityDialogNotifierSrv ) : public RSessionBase
       
    34     {
       
    35     public:     // constructors and destructor
       
    36         RSecurityDialogNotifierSrv();
       
    37         ~RSecurityDialogNotifierSrv();
       
    38 
       
    39     public:     // new functions
       
    40         TInt Connect();
       
    41         TVersion Version() const;
       
    42         void SecurityDialogOperation( TSecurityDialogOperation aOperation,
       
    43                 const TDesC8& aInputBuffer, TDes8& aOutputBuffer,
       
    44                 TRequestStatus& aStatus );
       
    45         void CancelOperation();
       
    46 
       
    47     private:    // new functions
       
    48         TInt StartServer();
       
    49 
       
    50     private:    // data
       
    51         TIpcArgs iArgs;
       
    52     };
       
    53 
       
    54 #endif // SECURITYDIALOGNOTIFIERSRV_H
       
    55