cbsatplugin/atmisccmdplugin/inc/securitycodeverifier.h
author hgs
Mon, 12 Jul 2010 19:13:27 +0300
changeset 44 6d10bd0d821a
parent 26 b78e66e88238
permissions -rw-r--r--
201027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
 * All rights reserved.
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
 * Initial Contributors:
hgs
parents:
diff changeset
     9
 * Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
 *
hgs
parents:
diff changeset
    11
 * Contributors:
hgs
parents:
diff changeset
    12
 * Description :
hgs
parents:
diff changeset
    13
 *
hgs
parents:
diff changeset
    14
 */
hgs
parents:
diff changeset
    15
hgs
parents:
diff changeset
    16
#ifndef SECURITYCODEVERIFIER_H
hgs
parents:
diff changeset
    17
#define SECURITYCODEVERIFIER_H
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
#include <etelmm.h>
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
class CCLCKCommandHandler;
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
/**
hgs
parents:
diff changeset
    24
 * AO class handling Secirity Code verification requests
hgs
parents:
diff changeset
    25
 */
hgs
parents:
diff changeset
    26
NONSHARABLE_CLASS(CSecurityCodeVerifier) : public CActive
hgs
parents:
diff changeset
    27
    {
hgs
parents:
diff changeset
    28
public:
hgs
parents:
diff changeset
    29
    static CSecurityCodeVerifier* NewL(CCLCKCommandHandler* aCLCKHandler, RMobilePhone& aPhone);
hgs
parents:
diff changeset
    30
    ~CSecurityCodeVerifier();
hgs
parents:
diff changeset
    31
    void Start(TDesC8& aPassword, RMobilePhone::TMobilePhoneSecurityCode& aSecurityCode);
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
private: // methods from CActive
hgs
parents:
diff changeset
    34
    virtual void RunL();
hgs
parents:
diff changeset
    35
    virtual void DoCancel();
hgs
parents:
diff changeset
    36
    // RunError not needed as RunL does not leave
hgs
parents:
diff changeset
    37
    
hgs
parents:
diff changeset
    38
private:
hgs
parents:
diff changeset
    39
    CSecurityCodeVerifier(CCLCKCommandHandler* aCLCKHandler, RMobilePhone& aPhone);
hgs
parents:
diff changeset
    40
    void ConstructL();
hgs
parents:
diff changeset
    41
hgs
parents:
diff changeset
    42
private:
hgs
parents:
diff changeset
    43
    CCLCKCommandHandler* iCLCKHandler;
hgs
parents:
diff changeset
    44
    RMobilePhone& iPhone;
hgs
parents:
diff changeset
    45
    RMobilePhone::TMobilePhoneSecurityEvent iSecurityEvent;
hgs
parents:
diff changeset
    46
    };
hgs
parents:
diff changeset
    47
hgs
parents:
diff changeset
    48
#endif /* SECURITYCODEVERIFIER_H */