logsui/EngineInc/CLogsEventGetter.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 *     Implements wrapper for Logs event object
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __Logs_Engine_CLogsEventGetter_H__
       
    21 #define __Logs_Engine_CLogsEventGetter_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "MLogsEventWrapper.h"
       
    26 
       
    27 // FORWARD DECLARATION
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  *  Implements interface for Logs event getter
       
    33  */
       
    34 class CLogsEventGetter :    public CBase,
       
    35                             public MLogsEventWrapper
       
    36     {
       
    37 
       
    38     public:
       
    39        /**
       
    40         * Two-phased constructor.
       
    41         *
       
    42         * @return CLogsEventGetter object
       
    43         */
       
    44         static CLogsEventGetter* NewL();
       
    45         
       
    46        /**
       
    47         * Destructor.
       
    48         */
       
    49         virtual ~CLogsEventGetter();
       
    50 
       
    51     private:
       
    52       /**
       
    53         * C++ constructor.
       
    54         *
       
    55         */
       
    56         CLogsEventGetter();
       
    57 
       
    58     public: // from MLogsEventGetter
       
    59     
       
    60         MLogsEvent* Event() const;
       
    61         
       
    62         TInt8 Duplicates() const;
       
    63 
       
    64         TLogsEventType EventType() const;
       
    65 
       
    66         TUint8 FieldId() const;
       
    67 
       
    68         TUid EventUid() const;
       
    69 
       
    70         TLogsDirection Direction() const;
       
    71 
       
    72         TTime Time() const;
       
    73 
       
    74         TLogId LogId() const;
       
    75 
       
    76         HBufC*  Number() const;
       
    77 
       
    78         HBufC* RemoteParty() const;
       
    79 
       
    80         MLogsEventData* LogsEventData() const;
       
    81 
       
    82         TBool ALS() const;
       
    83 
       
    84         TBool CNAP() const;
       
    85 //For ring duation feature
       
    86         TLogDuration RingDuration() const;
       
    87         
       
    88         TInt NumberFieldType() const;
       
    89 
       
    90     public: // from MLogsEventWrapper
       
    91 
       
    92         //MLogsEventGetter* Wrap( MLogsEvent* aEvent );
       
    93         const MLogsEventGetter* Wrap( MLogsEvent* aEvent );
       
    94              
       
    95     private:    // data
       
    96 
       
    97         /// Ref: object to wrapper.
       
    98         MLogsEvent* iWrappedObject;
       
    99 
       
   100     };
       
   101 #endif      // __Logs_Engine_CLogsEventGetter_H__
       
   102 
       
   103 
       
   104 
       
   105 // End of File