logsui/AocCtViewInc/CLogsEtelBase.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Logs etel base class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CLogsEtelBase_H
       
    21 #define __CLogsEtelBase_H
       
    22 
       
    23 //  INCLUDE FILES  
       
    24 #include <e32base.h> // CActive
       
    25 #include <etel.h> // RTelServer
       
    26 #include <etelmm.h> // RMobilePhone
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // times to try in PIN2 operations
       
    31 const TInt KPin2Max = 3;
       
    32 
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 
       
    36 //  CLASS DECLARATIONS 
       
    37 
       
    38 
       
    39 class CLogsEtelBase: public CActive
       
    40     {
       
    41         
       
    42     protected:
       
    43         /**
       
    44          *  C++ Constructor
       
    45          */
       
    46         CLogsEtelBase();
       
    47 
       
    48         /**
       
    49          *  C++ Destructor
       
    50          */
       
    51         ~CLogsEtelBase();
       
    52 
       
    53     protected: // EPOC Telephony Server connection related functions
       
    54         /**
       
    55          * Connect ETel connection
       
    56          */
       
    57         TInt OpenEtelConnection();
       
    58 
       
    59         /**
       
    60          * Disconnect ETel connection
       
    61          */
       
    62         void CloseEtelConnection();
       
    63 
       
    64     protected: 
       
    65         void ShowSecUiNoteLD( TInt aResourceId );
       
    66 
       
    67     protected: // data
       
    68         /// Own: connection status
       
    69         TBool iConnectionOk;
       
    70               
       
    71         /// Own: Telephone server, for notifications
       
    72         RTelServer iServer;
       
    73         
       
    74         /// Own: custom phone for line handling, for notifications
       
    75         RMobilePhone iPhone;
       
    76 
       
    77     };
       
    78 
       
    79 #endif  // __CLogsEtelBase_H
       
    80 
       
    81 // End of file