telephonyserverplugins/simatktsy/src/TSatEventList.cpp
branchRCL_3
changeset 19 630d2f34d719
parent 0 3553901f7fa8
child 20 07a122eea281
equal deleted inserted replaced
18:17af172ffa5f 19:630d2f34d719
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2010 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 
    22 #include "TSatEventList.h"   // Class header
    28 #include "TSatEventList.h"   // Class header
    23 #include "TfLogger.h"        // For TFLOGSTRING
       
    24 
    29 
    25 // -----------------------------------------------------------------------------
    30 // -----------------------------------------------------------------------------
    26 // TSatEventList::TSatEventList
    31 // TSatEventList::TSatEventList
    27 // TSatEventList C++ constructor
    32 // TSatEventList C++ constructor
    28 // -----------------------------------------------------------------------------
    33 // -----------------------------------------------------------------------------
    30 TSatEventList::TSatEventList
    35 TSatEventList::TSatEventList
    31         (
    36         (
    32         void 
    37         void 
    33         ) : iEvents( 0 )
    38         ) : iEvents( 0 )
    34     {
    39     {
    35     TFLOGSTRING( "CSAT: TSatEventList::TSatEventList" );
    40     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS ,TSATEVENTLIST_CTOR_1,  "CSAT: TSatEventList::TSatEventList" );
    36     }
    41     }
    37 
    42 
    38 // -----------------------------------------------------------------------------
    43 // -----------------------------------------------------------------------------
    39 // TSatEventList::IsEventEnabled
    44 // TSatEventList::IsEventEnabled
    40 // Check if event is ín the set of enabled events
    45 // Check if event is ín the set of enabled events
    46         ) const
    51         ) const
    47     {
    52     {
    48 
    53 
    49     if( iEvents & TUint32( aEvent ) )
    54     if( iEvents & TUint32( aEvent ) )
    50         {
    55         {
    51         TFLOGSTRING2( "CSAT: TSatEventList::IsEventEnabled, \
    56         OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_ISENABLED_1,  "CSAT: TSatEventList::IsEventEnabled, Event Enabled: %d", aEvent );
    52             Event Enabled: %d", aEvent );
       
    53         return ETrue;
    57         return ETrue;
    54         }
    58         }
    55     else
    59     else
    56         {
    60         {
    57         TFLOGSTRING( "CSAT: TSatEventList::IsEventEnabled, \
    61         OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_ISENABLED_2,  "CSAT: TSatEventList::IsEventEnabled, Event Not enabled" );
    58             Event Not enabled" );
       
    59         return EFalse;
    62         return EFalse;
    60         }
    63         }
    61 
    64 
    62     }
    65     }
    63 
    66 
    69 void TSatEventList::RemoveFromEventList
    72 void TSatEventList::RemoveFromEventList
    70         (
    73         (
    71         RSat::TEventList aEvent
    74         RSat::TEventList aEvent
    72         )
    75         )
    73     {
    76     {
    74     TFLOGSTRING( "CSAT: TSatEventList::RemoveFromEventList" );
    77     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_REMOVEFROMEVENTLIST_1,  "CSAT: TSatEventList::RemoveFromEventList" );
    75     iEvents &= ~TUint32( aEvent );
    78     iEvents &= ~TUint32( aEvent );
    76     }
    79     }
    77 
    80 
    78 // -----------------------------------------------------------------------------
    81 // -----------------------------------------------------------------------------
    79 // TSatEventList::AddToEventList
    82 // TSatEventList::AddToEventList
    83 void TSatEventList::AddToEventList
    86 void TSatEventList::AddToEventList
    84         (
    87         (
    85         RSat::TEventList aEvent
    88         RSat::TEventList aEvent
    86         )
    89         )
    87     {
    90     {
    88     TFLOGSTRING( "CSAT: TSatEventList::AddToEventList" );
    91     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_ADDTOEVENTLIST_1,  "CSAT: TSatEventList::AddToEventList" );
    89     iEvents |= TUint32( aEvent );
    92     iEvents |= TUint32( aEvent );
    90     }
    93     }
    91 
    94 
    92 // -----------------------------------------------------------------------------
    95 // -----------------------------------------------------------------------------
    93 // TSatEventList::SetEventList
    96 // TSatEventList::SetEventList
    97 void TSatEventList::SetEventList
   100 void TSatEventList::SetEventList
    98         (
   101         (
    99         TUint32 aEvent
   102         TUint32 aEvent
   100         )
   103         )
   101     {
   104     {
   102     TFLOGSTRING2( "CSAT: TSatEventList::SetEventList aEvent:%d", aEvent );
   105     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSATEVENTLIST_SETEVENTLIST_1,  "CSAT: TSatEventList::SetEventList aEvent:%d", aEvent );
   103     iEvents = aEvent;
   106     iEvents = aEvent;
   104     }
   107     }
   105 
   108 
   106 // End of File
   109 // End of File