CTC++ Coverage Report - Execution Profile    #5/7

Directory Summary | Files Summary | Functions Summary | Execution Profile
To files: First | Previous | Next | Last | Index | No Index


File: N:\myprogram\forrrelease1\oodmonitor\tsrc\ut_oodsubscriber\src\mockoutofdiskpsobserver.cpp
Instrumentation mode: function
TER: 100 % ( 5/ 5)

Start/ End/    
True False - Line Source

  1 /*
  2 * Copyright (c) 2010 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 *           This class handles the received indications from the PubSub.
  16 *
  17 */
  18 
  19 
  20 // SYSTEM INCLUDES
  21 
  22 // USER INCLUDES
  23 #include "outofdiskmonitor.h"
  24 #include "outofdisksubscriber.h"
  25 #include "outofdiskpsobserver.h"
  26 #include "OodTraces.h"
  27 
  28 // ================= MEMBER FUNCTIONS =======================
  29 
  30 // ----------------------------------------------------
  31 // COutOfDiskPSObserver::COutOfDiskPSObserver( COutOfDiskMonitor* aOutOfDiskMonitor )
  32 // C++ default constructor can NOT contain any code, that
  33 // might leave.
  34 // ----------------------------------------------------
Top
  35 COutOfDiskPSObserver::COutOfDiskPSObserver( COutOfDiskMonitor* aOutOfDiskMonitor ) :
  36     iOutOfDiskMonitor( aOutOfDiskMonitor )
  37     {
  38     }
  39 
  40 // ----------------------------------------------------
  41 // COutOfDiskPSObserver::ConstructL()
  42 // ----------------------------------------------------
Top
  43 void COutOfDiskPSObserver::ConstructL()
  44     {
  45     TRACES("COutOfDiskPSObserver::ConstructL()");
  46 
  47 //    iUikGlobalNotesAllowedSubscriber = COutOfDiskSubscriber::NewL( *this, 
  48 //                                                                   KPSUidUikon, 
  49 //                                                                   KUikGlobalNotesAllowed );
  50 //    iUikGlobalNotesAllowedSubscriber->Subscribe();
  51 //
  52 //    TInt state(0);
  53 //    RProperty::Get( KPSUidUikon, KUikGlobalNotesAllowed, state );
  54 //    iOutOfDiskMonitor->SetGlobalNotesAllowed(state);
  55 //
  56 //    iAutolockStatusSubscriber = COutOfDiskSubscriber::NewL( *this, 
  57 //                                                            KPSUidCoreApplicationUIs, 
  58 //                                                            KCoreAppUIsAutolockStatus );
  59 //    iAutolockStatusSubscriber->Subscribe();
  60 //    RProperty::Get( KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, iAutolockStatus );
  61     
  62     TRACES("COutOfDiskPSObserver::ConstructL(): End");
  63     }
  64 
  65 // ----------------------------------------------------------------------------
  66 // COutOfDiskPSObserver::HandlePropertyChangedL()
  67 // ----------------------------------------------------------------------------
Top
  68 void COutOfDiskPSObserver::HandlePropertyChangedL( const TUid& aCategory, TUint aKey )
  69     {
  70     TInt value( 0 );
  71     RProperty::Get( aCategory, aKey, value );
  72     
  73     CActiveScheduler::Stop();
  74     }
  75 
  76 // ----------------------------------------------------
  77 // COutOfDiskPSObserver::NewL( COutOfDiskMonitor** aOutOfDiskMonitor )
  78 // ----------------------------------------------------
Top
  79 COutOfDiskPSObserver* COutOfDiskPSObserver::NewL( COutOfDiskMonitor* aOutOfDiskMonitor )
  80     {
  81     TRACES("COutOfDiskPSObserver::NewL()");
  82     COutOfDiskPSObserver* self = new (ELeave) COutOfDiskPSObserver( aOutOfDiskMonitor );
  83 
  84     CleanupStack::PushL( self );
  85     self->ConstructL();
  86     CleanupStack::Pop( self );
  87 
  88     TRACES("COutOfDiskPSObserver::NewL(): End");
  89     return self;
  90     }
  91 
  92 // ----------------------------------------------------
  93 // COutOfDiskPSObserver::~COutOfDiskPSObserver()
  94 // ----------------------------------------------------
Top
  95 COutOfDiskPSObserver::~COutOfDiskPSObserver()
  96     {
  97     TRACES("COutOfDiskPSObserver::~COutOfDiskPSObserver()");
  98     delete iAutolockStatusSubscriber;
  99     delete iUikGlobalNotesAllowedSubscriber;
  100     TRACES("COutOfDiskPSObserver::~COutOfDiskPSObserver(): End");
  101     }
  102 
  103 //  End of File
***TER 100% (5/5) of SOURCE FILE mockoutofdiskpsobserver.cpp

Directory Summary | Files Summary | Functions Summary | Execution Profile
To files: First | Previous | Next | Last | Top | Index | No Index