cbsatplugin/atmisccmdplugin/inc/securityeventhandler.h
branchRCL_3
changeset 16 b23265fb36da
equal deleted inserted replaced
14:f7fbeaeb166a 16:b23265fb36da
       
     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  * Initial Contributors:
       
     9  * Nokia Corporation - initial contribution.
       
    10  *
       
    11  * Contributors:
       
    12  * Description :
       
    13  *
       
    14  */
       
    15 
       
    16 
       
    17 #ifndef SECURITYEVENTHANDLER_H
       
    18 #define SECURITYEVENTHANDLER_H
       
    19 
       
    20 #include <etelmm.h>
       
    21 
       
    22 class CCLCKCommandHandler;
       
    23 
       
    24 /**
       
    25  * AO class handling Security Events notifications
       
    26  */
       
    27 NONSHARABLE_CLASS(CSecurityEventHandler) : public CActive
       
    28     {
       
    29 public:
       
    30     static CSecurityEventHandler* NewL(CCLCKCommandHandler* aCLCKHandler, RMobilePhone& aPhone);
       
    31     ~CSecurityEventHandler();
       
    32     void Start();
       
    33     
       
    34 private: // methods from CActive
       
    35     virtual void RunL();
       
    36     virtual void DoCancel();
       
    37     // RunError not needed as RunL does not leave
       
    38 
       
    39 private:
       
    40     CSecurityEventHandler(CCLCKCommandHandler* aCLCKHandler, RMobilePhone& aPhone);
       
    41     void ConstructL();
       
    42     
       
    43 private:
       
    44     CCLCKCommandHandler* iCLCKHandler;
       
    45     RMobilePhone& iPhone;
       
    46     RMobilePhone::TMobilePhoneSecurityEvent iSecurityEvent;
       
    47     };
       
    48 
       
    49 #endif /* SECURITYEVENTHANDLER_H */