terminalsecurity/SCP/SCPTimestampPlugin/inc/SCPUserInf.h
branchRCL_3
changeset 26 19bba8228ff0
parent 11 06f47423ecee
equal deleted inserted replaced
25:b183ec05bd8c 26:19bba8228ff0
       
     1 /*
       
     2 * Copyright (c) 2000 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: CSCPUserInf declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CSCPUSERINF_H
       
    19 #define CSCPUSERINF_H
       
    20 
       
    21 #include <e32base.h>	// For CActive, link against: euser.lib
       
    22 #include <e32std.h>		// For RTimer, link against: euser.lib
       
    23 class CSCPUserInf : public CActive
       
    24     {
       
    25 public:
       
    26     // Cancel and destroy
       
    27     ~CSCPUserInf();
       
    28 
       
    29     // Two-phased constructor.
       
    30     static CSCPUserInf* NewL();
       
    31 
       
    32     // Two-phased constructor.
       
    33     static CSCPUserInf* NewLC();
       
    34 
       
    35 public:
       
    36     // New functions
       
    37     // Function for making the initial request
       
    38     void StartL(TDesC& aString);
       
    39     void DoRfsL();
       
    40 private:
       
    41     // C++ constructor
       
    42     CSCPUserInf();
       
    43 
       
    44     // Second-phase constructor
       
    45     void ConstructL();
       
    46 
       
    47 private:
       
    48     // From CActive
       
    49     // Handle completion
       
    50     void RunL();
       
    51 
       
    52     // How to cancel me
       
    53     void DoCancel();
       
    54 
       
    55     // Override to handle leaves from RunL(). Default implementation causes
       
    56     // the active scheduler to panic.
       
    57     TInt RunError(TInt aError);
       
    58 
       
    59 private:
       
    60     enum TCSCPUserInfState
       
    61         {
       
    62         EGlobalConf, // Uninitialized
       
    63         ERfs, // Initalized
       
    64         EError
       
    65         // Error condition
       
    66         };
       
    67 
       
    68 private:
       
    69     TInt iState; // State of the active object
       
    70     //RTimer iTimer; // Provides async timing service
       
    71     HBufC16* idispText;
       
    72     };
       
    73 
       
    74 #endif // CSCPUSERINF_H