securitydialogs/secuidialognotifier/inc/secuidialognotifier.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
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SECUIDIALOGNOTIFIER_H
       
    19 #define SECUIDIALOGNOTIFIER_H
       
    20 
       
    21 #include <eiknotapi.h>                  // MEikSrvNotifierManager
       
    22 
       
    23 class CSecuiDialogs;
       
    24 
       
    25 
       
    26 /**
       
    27  * Secui Dialog Notifier
       
    28  * CSecuiDialogNotifier is a RNotifier that implements secui dialogs
       
    29  * defined in secdlgimpldefs.h (see TSecurityDialogOperation operations).
       
    30  */
       
    31 NONSHARABLE_CLASS( CSecuiDialogNotifier ) : public CBase, public MEikSrvNotifierBase2
       
    32     {
       
    33     public:     // constructors and destructor
       
    34         static CSecuiDialogNotifier* NewL();
       
    35         ~CSecuiDialogNotifier();
       
    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         CSecuiDialogNotifier();
       
    48         void ConstructL();
       
    49         void DoStartL( const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage );
       
    50 
       
    51     private:    // data
       
    52         CSecuiDialogs* iSecuiDialogs;
       
    53         TBool iIsSecuiDialogsDeleted;
       
    54     };
       
    55 
       
    56 #endif // SECUIDIALOGNOTIFIER_H
       
    57