pkiutilities/securitydialognotifier/inc/securitydialognotifier.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
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SECURITYDIALOGNOTIFIER_H
       
    19 #define SECURITYDIALOGNOTIFIER_H
       
    20 
       
    21 #include <eiknotapi.h>                  // MEikSrvNotifierManager
       
    22 
       
    23 class CSecurityDialogs;
       
    24 
       
    25 
       
    26 /**
       
    27  * Security Dialog Notifier
       
    28  * CSecurityDialogNotifier is a RNotifier that implements security dialogs
       
    29  * defined in secdlgimpldefs.h (see TSecurityDialogOperation operations).
       
    30  */
       
    31 NONSHARABLE_CLASS( CSecurityDialogNotifier ) : public CBase, public MEikSrvNotifierBase2
       
    32     {
       
    33     public:     // constructors and destructor
       
    34         static CSecurityDialogNotifier* NewL();
       
    35         ~CSecurityDialogNotifier();
       
    36 
       
    37     private:    // from MEikSrvNotifierBase2
       
    38         void Release();
       
    39         TNotifierInfo RegisterL();
       
    40         TNotifierInfo Info() const;
       
    41         void StartL( const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage );
       
    42         TPtrC8 StartL( const TDesC8& aBuffer );
       
    43         void Cancel();
       
    44         TPtrC8 UpdateL( const TDesC8& aBuffer );
       
    45 
       
    46     private:    // new functions
       
    47         CSecurityDialogNotifier();
       
    48         void ConstructL();
       
    49         void DoStartL( const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage );
       
    50 
       
    51     private:    // data
       
    52         CSecurityDialogs* iSecurityDialogs;
       
    53         TBool iIsSecurityDialogsDeleted;
       
    54     };
       
    55 
       
    56 #endif // SECURITYDIALOGNOTIFIER_H
       
    57