diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyutils/telephonywatchers/inc/phoneonoff.h --- a/telephonyutils/telephonywatchers/inc/phoneonoff.h Mon May 03 13:37:20 2010 +0300 +++ b/telephonyutils/telephonywatchers/inc/phoneonoff.h Thu May 06 15:10:38 2010 +0100 @@ -1,77 +1,77 @@ -// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#ifndef __PHONEONOFF_H__ -#define __PHONEONOFF_H__ - -// System includes -#include -#include - - -// -// ------> MPhoneOnOffObserver (header) -// -class MPhoneOnOffObserver -/** -@internalComponent -*/ -{ -// -public: // FROM MPhoneOnOffObserver -// - IMPORT_C virtual void PhoneIsOff(); - IMPORT_C virtual void PhoneIsOn(); -}; - - - - -// -// ------> CPhoneOnOff (header) -// -class CPhoneOnOff : public CActive -/** -@internalComponent -*/ - { -// -public: // CONSTRUCT / DESTRUCT -// - CPhoneOnOff(MPhoneOnOffObserver& aPhoneWatcher); - ~CPhoneOnOff(); - void ConstructL(); - -// -public: // ISSUE REQUEST -// - void IssueRequestL(); - -// -private: // FROM CActive -// - void RunL(); - void DoCancel(); - -// -private: // MEMBER DATA -// - RProperty iPhonePowerProperty; - TBool iWaitingForPhoneOff; - MPhoneOnOffObserver& iPropertyPhoneWatcher; - }; - - -#endif +// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __PHONEONOFF_H__ +#define __PHONEONOFF_H__ + +// System includes +#include +#include + + +// +// ------> MPhoneOnOffObserver (header) +// +class MPhoneOnOffObserver +/** +@internalComponent +*/ +{ +// +public: // FROM MPhoneOnOffObserver +// + IMPORT_C virtual void PhoneIsOff(); + IMPORT_C virtual void PhoneIsOn(); +}; + + + + +// +// ------> CPhoneOnOff (header) +// +class CPhoneOnOff : public CActive +/** +@internalComponent +*/ + { +// +public: // CONSTRUCT / DESTRUCT +// + CPhoneOnOff(MPhoneOnOffObserver& aPhoneWatcher); + ~CPhoneOnOff(); + void ConstructL(); + +// +public: // ISSUE REQUEST +// + void IssueRequestL(); + +// +private: // FROM CActive +// + void RunL(); + void DoCancel(); + +// +private: // MEMBER DATA +// + RProperty iPhonePowerProperty; + TBool iWaitingForPhoneOff; + MPhoneOnOffObserver& iPropertyPhoneWatcher; + }; + + +#endif