First public contribution.
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32test\bench\t_notify_perf.inl
19 inline TInt CTimerLogger::MeasureStart()
23 iTickNumber = User::NTickCount();
30 inline TInt CTimerLogger::MeasureEnd()
34 TUint32 tick = User::NTickCount();
35 iTickNumber = tick - iTickNumber;
41 inline TBool CTimerLogger::Timing()
46 //---------------------------------------------------------------------------
48 inline void TTestSetting::Reset()
52 iOperationList = NULL;
55 //---------------------------------------------------------------------------
57 inline void CTestExecutor::SetTestSetting(TTestSetting& aSetting)
59 iTestSetting = aSetting;
62 //---------------------------------------------------------------------------
65 inline TInt CMdsPluginControl::Enable()
67 return DoControl( EMdsFSPOpEnable );
71 inline TInt CMdsPluginControl::Disable()
73 return DoControl( EMdsFSPOpDisable );
76 // request notification from plugin
77 inline void CMdsPluginControl::RegisterNotification(TMdsFSPStatusPckg& aMdsFSPStatus, TRequestStatus& aStat )
79 DoRequest( EMdsFSPOpRegisterNotification, aStat, aMdsFSPStatus );
82 // add monitoring path
83 inline void CMdsPluginControl::AddNotificationPath( const TDesC& aPath )
85 TMdsFSPStatusPckg pckg;
87 TMdsFSPStatus& status = pckg();
89 status.iFileName.Zero();
90 status.iFileName.Copy( aPath );
92 DoRequest( EMdsFSPOpAddNotificationPath, rs, pckg );
93 User::WaitForRequest( rs );
96 // remove the monitoring path
97 inline void CMdsPluginControl::RemoveNotificationPath( const TDesC& aPath )
99 TMdsFSPStatusPckg pckg;
101 TMdsFSPStatus& status = pckg();
103 status.iFileName.Zero();
104 status.iFileName.Copy( aPath );
106 DoRequest( EMdsFSPOpRemoveNotificationPath, rs, pckg );
107 User::WaitForRequest( rs );
110 // cancel notification
111 inline void CMdsPluginControl::NotificationCancel()
113 DoCancel( EMdsFSPOpNotificationCancel );