logsui/EngineSrc/CLogsEventGetter.cpp
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 interface for Logs event wrapper
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "CLogsEventGetter.h"
       
    22 #include "MLogsEvent.h"
       
    23 
       
    24 // CONSTANTS
       
    25 
       
    26 CLogsEventGetter* CLogsEventGetter::NewL( )
       
    27     {
       
    28     return new (ELeave) CLogsEventGetter();
       
    29     }
       
    30 
       
    31 CLogsEventGetter::~CLogsEventGetter()
       
    32     {
       
    33     }
       
    34 
       
    35 CLogsEventGetter::CLogsEventGetter( ) 
       
    36     {
       
    37     }
       
    38 
       
    39 MLogsEvent* CLogsEventGetter::Event() const
       
    40     {
       
    41     return iWrappedObject;
       
    42     }
       
    43 
       
    44 TInt8 CLogsEventGetter::Duplicates() const
       
    45     {
       
    46     return iWrappedObject->Duplicates();
       
    47     }
       
    48 
       
    49 TLogsEventType CLogsEventGetter::EventType() const
       
    50     {
       
    51     return iWrappedObject->EventType();
       
    52     }
       
    53 
       
    54 //TUid CLogsEventGetter::Uid() const
       
    55 TUid CLogsEventGetter::EventUid() const
       
    56     {
       
    57     return iWrappedObject->EventUid();
       
    58     }
       
    59 
       
    60 TLogsDirection CLogsEventGetter::Direction() const
       
    61     {
       
    62     return iWrappedObject->Direction();
       
    63     }
       
    64 
       
    65 TTime CLogsEventGetter::Time() const
       
    66     {
       
    67     return iWrappedObject->Time();
       
    68     }
       
    69 
       
    70 TLogId CLogsEventGetter::LogId() const
       
    71     {
       
    72     return iWrappedObject->LogId();
       
    73     }
       
    74 
       
    75 HBufC* CLogsEventGetter::Number() const
       
    76     {
       
    77     return iWrappedObject->Number() ;
       
    78     }
       
    79 
       
    80 HBufC* CLogsEventGetter::RemoteParty() const
       
    81     {
       
    82     return iWrappedObject->RemoteParty() ;
       
    83     }
       
    84 
       
    85 const MLogsEventGetter* CLogsEventGetter::Wrap( MLogsEvent* aEvent )
       
    86     {
       
    87     iWrappedObject = aEvent;
       
    88 
       
    89     if( iWrappedObject )
       
    90         {
       
    91         return this;
       
    92         }
       
    93     else
       
    94         {
       
    95         return NULL;
       
    96         }
       
    97     }
       
    98 
       
    99 MLogsEventData* CLogsEventGetter::LogsEventData() const
       
   100     {
       
   101     return iWrappedObject->LogsEventData();
       
   102     }
       
   103 
       
   104 TBool CLogsEventGetter::ALS() const
       
   105     {
       
   106     return iWrappedObject->ALS();
       
   107     }
       
   108 
       
   109 TBool CLogsEventGetter::CNAP() const
       
   110     {
       
   111     return iWrappedObject->CNAP();
       
   112     }
       
   113 //For ring duation feature
       
   114 TLogDuration CLogsEventGetter::RingDuration() const
       
   115     {
       
   116     return iWrappedObject->RingDuration();
       
   117     }
       
   118 
       
   119 TInt CLogsEventGetter::NumberFieldType() const
       
   120     {
       
   121     return iWrappedObject->NumberFieldType();
       
   122     }
       
   123