telephonyserverplugins/simatktsy/src/TSatEventList.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 // Version     : 1.0
    17 // Version     : 1.0
    18 //
    18 //
    19 
    19 
    20 
    20 
    21 
    21 
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "TSatEventListTraces.h"
       
    26 #endif
       
    27 
       
    28 #include "TSatEventList.h"   // Class header
    22 #include "TSatEventList.h"   // Class header
       
    23 #include "TfLogger.h"        // For TFLOGSTRING
    29 
    24 
    30 // -----------------------------------------------------------------------------
    25 // -----------------------------------------------------------------------------
    31 // TSatEventList::TSatEventList
    26 // TSatEventList::TSatEventList
    32 // TSatEventList C++ constructor
    27 // TSatEventList C++ constructor
    33 // -----------------------------------------------------------------------------
    28 // -----------------------------------------------------------------------------
    35 TSatEventList::TSatEventList
    30 TSatEventList::TSatEventList
    36         (
    31         (
    37         void 
    32         void 
    38         ) : iEvents( 0 )
    33         ) : iEvents( 0 )
    39     {
    34     {
    40     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS ,TSATEVENTLIST_CTOR_1,  "CSAT: TSatEventList::TSatEventList" );
    35     TFLOGSTRING( "CSAT: TSatEventList::TSatEventList" );
    41     }
    36     }
    42 
    37 
    43 // -----------------------------------------------------------------------------
    38 // -----------------------------------------------------------------------------
    44 // TSatEventList::IsEventEnabled
    39 // TSatEventList::IsEventEnabled
    45 // Check if event is ín the set of enabled events
    40 // Check if event is ín the set of enabled events
    51         ) const
    46         ) const
    52     {
    47     {
    53 
    48 
    54     if( iEvents & TUint32( aEvent ) )
    49     if( iEvents & TUint32( aEvent ) )
    55         {
    50         {
    56         OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_ISENABLED_1,  "CSAT: TSatEventList::IsEventEnabled, Event Enabled: %d", aEvent );
    51         TFLOGSTRING2( "CSAT: TSatEventList::IsEventEnabled, \
       
    52             Event Enabled: %d", aEvent );
    57         return ETrue;
    53         return ETrue;
    58         }
    54         }
    59     else
    55     else
    60         {
    56         {
    61         OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_ISENABLED_2,  "CSAT: TSatEventList::IsEventEnabled, Event Not enabled" );
    57         TFLOGSTRING( "CSAT: TSatEventList::IsEventEnabled, \
       
    58             Event Not enabled" );
    62         return EFalse;
    59         return EFalse;
    63         }
    60         }
    64 
    61 
    65     }
    62     }
    66 
    63 
    72 void TSatEventList::RemoveFromEventList
    69 void TSatEventList::RemoveFromEventList
    73         (
    70         (
    74         RSat::TEventList aEvent
    71         RSat::TEventList aEvent
    75         )
    72         )
    76     {
    73     {
    77     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_REMOVEFROMEVENTLIST_1,  "CSAT: TSatEventList::RemoveFromEventList" );
    74     TFLOGSTRING( "CSAT: TSatEventList::RemoveFromEventList" );
    78     iEvents &= ~TUint32( aEvent );
    75     iEvents &= ~TUint32( aEvent );
    79     }
    76     }
    80 
    77 
    81 // -----------------------------------------------------------------------------
    78 // -----------------------------------------------------------------------------
    82 // TSatEventList::AddToEventList
    79 // TSatEventList::AddToEventList
    86 void TSatEventList::AddToEventList
    83 void TSatEventList::AddToEventList
    87         (
    84         (
    88         RSat::TEventList aEvent
    85         RSat::TEventList aEvent
    89         )
    86         )
    90     {
    87     {
    91     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_ADDTOEVENTLIST_1,  "CSAT: TSatEventList::AddToEventList" );
    88     TFLOGSTRING( "CSAT: TSatEventList::AddToEventList" );
    92     iEvents |= TUint32( aEvent );
    89     iEvents |= TUint32( aEvent );
    93     }
    90     }
    94 
    91 
    95 // -----------------------------------------------------------------------------
    92 // -----------------------------------------------------------------------------
    96 // TSatEventList::SetEventList
    93 // TSatEventList::SetEventList
   100 void TSatEventList::SetEventList
    97 void TSatEventList::SetEventList
   101         (
    98         (
   102         TUint32 aEvent
    99         TUint32 aEvent
   103         )
   100         )
   104     {
   101     {
   105     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_SETEVENTLIST_1,  "CSAT: TSatEventList::SetEventList aEvent:%d", aEvent );
   102     TFLOGSTRING2( "CSAT: TSatEventList::SetEventList aEvent:%d", aEvent );
   106     iEvents = aEvent;
   103     iEvents = aEvent;
   107     }
   104     }
   108 
   105 
   109 // End of File
   106 // End of File