securitydialogs/secuidialognotifier/inc/secuidialognotifiersrv.h
changeset 61 1cc4c46c2963
equal deleted inserted replaced
56:25a3fbb5e4d3 61:1cc4c46c2963
       
     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, client-side API.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SECUIDIALOGNOTIFIERSRV_H
       
    19 #define SECUIDIALOGNOTIFIERSRV_H
       
    20 
       
    21 #include <e32std.h>             // RSessionBase
       
    22 #include <secdlgimpldefs.h>     // TSecurityDialogOperation
       
    23 
       
    24 
       
    25 /**
       
    26  * Secui Dialog Notifier Server API
       
    27  * Secui dialogs provide TSecurityDialogOperation functionality defined in secdlgimpldefs.h.
       
    28  * Implementation consist of two components: a notifier DLL (CSecuiDialogNotifier, ECom DLL)
       
    29  * and a server executable (CSecuiDialogNotifierSrv). CSecuiDialogNotifier runs in UIKON
       
    30  * server that has limited capabilities. It passes the requests to the server component
       
    31  * (CSecuiDialogNotifierSrv) that provides the actual functionality.
       
    32  */
       
    33 NONSHARABLE_CLASS( RSecuiDialogNotifierSrv ) : public RSessionBase
       
    34     {
       
    35     public:     // constructors and destructor
       
    36         RSecuiDialogNotifierSrv();
       
    37         ~RSecuiDialogNotifierSrv();
       
    38 
       
    39     public:     // new functions
       
    40         TInt Connect();
       
    41         TVersion Version() const;
       
    42         void SecuiDialogOperation( 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 // SECUIDIALOGNOTIFIERSRV_H
       
    55