logsui/AocCtViewInc/MLogsAocUtil.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 *     Includes AoC's and CT's commonly needed functions
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __MLogsAocUtil_H
       
    21 #define __MLogsAocUtil_H
       
    22 
       
    23 //  INCLUDE FILES  
       
    24 
       
    25 //  CLASS DECLARATIONS 
       
    26 
       
    27 /**
       
    28  *  Abstract clss for Aoc utility functions.
       
    29  */
       
    30 class MLogsAocUtil 
       
    31     {
       
    32     public:
       
    33 
       
    34         /**
       
    35          * Destructor.
       
    36          */
       
    37         virtual ~MLogsAocUtil() {};
       
    38 
       
    39         /**
       
    40          *  Clears all the Costs
       
    41          *
       
    42          *  Return value: KErrNone if timers are cleared, Otherwice error 
       
    43          *          code from ETEL
       
    44          */
       
    45         //virtual TInt ClearAllCostsL() = 0;
       
    46 
       
    47         /**
       
    48          *  Asks security code
       
    49          *
       
    50          *  Return value: error code
       
    51          */
       
    52         virtual TInt AskSecCodeL() = 0;
       
    53 
       
    54         /**
       
    55          *  This function sets the value of the ACMM.
       
    56          *  This function depends of the ETel. Units version
       
    57          *
       
    58          *  Parameter:  aAcmMax The value of the ACMM
       
    59          *  Return value: KErrNone for succesfull call, otherwise 
       
    60          *          ETEL error code.
       
    61          */
       
    62         //virtual TInt SetAcmMaxUnitL( const TUint aAcmMax ) = 0;
       
    63 
       
    64         /**
       
    65          *  This function sets the value of the ACMM.
       
    66          *  This function depends of the ETel. Currency version
       
    67          *
       
    68          *  Parameter:  aAcmMax The value of the ACMM
       
    69          *  Return value: value, KErrNone for succesfull call,otherwise 
       
    70          *          ETEL error code.
       
    71          */
       
    72         //virtual TInt SetAcmMaxCurrencyL( const TReal aAcmMax ) = 0;
       
    73 
       
    74         /**
       
    75          *  With this function is set the currency name and the price per unit
       
    76          *  in to the SIM. This depends on the ETel.
       
    77          *  The currency name can only be 3 characters long.
       
    78          *  The price per unit is TReal.
       
    79          *
       
    80          *  Parameter:  aCurrencyName   The text to be set as a currency name
       
    81          *  Parameter:  aPricePerUnit   The price per one unit
       
    82          *  Return value: KErrNone for succesfull call,otherwise 
       
    83          *          ETEL error code.
       
    84          */
       
    85         //virtual TInt SetPuctL( TDesC& aCurrencyName, TReal aPricePerUnit ) = 0;
       
    86 
       
    87         /**
       
    88          *  Disable ACM max.
       
    89          *
       
    90          *  Return value: KErrNone for succesfull
       
    91          *          call, ETEL error code in error.
       
    92          */
       
    93         //virtual TInt DisableACMMaxL() = 0;
       
    94 
       
    95         /**
       
    96          *  Is aoc (charging or information supported)
       
    97          *
       
    98          *  Parameter: aValue, 0 no support
       
    99          *					 , 1 Information service
       
   100          *					 , 3 Charging service
       
   101          *  Return value: KErrNone if succesfull or ETEL error code in error.
       
   102          */
       
   103         //virtual TInt AocSupported( TInt& aValue ) = 0;
       
   104 
       
   105         /**
       
   106          *  Disable puct. Set aoc server to unit mode.
       
   107          *
       
   108          *  Return value: KErrNone or ETEL error code in error.
       
   109          */
       
   110         //virtual TInt DisablePuctL() = 0;
       
   111 
       
   112         /**
       
   113          * Get active call duration
       
   114          * Parameter: aTime duration is set here.
       
   115          *
       
   116          * Return value: KErrNone or ETEL error code in error.
       
   117          */
       
   118         virtual TInt GetAirTimeDuration( TTimeIntervalSeconds& aTime ) = 0;
       
   119 
       
   120 
       
   121 
       
   122     };
       
   123 
       
   124 #endif  // __MLogsAocUtil_H
       
   125 
       
   126 // End of file