diff -r 000000000000 -r 2f259fa3e83a uifw/AvKon/notifsrc/AknSmallIndicator.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uifw/AvKon/notifsrc/AknSmallIndicator.cpp Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2002-2007 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: +* +*/ + +#include "AknSmallIndicator.h" +#include +#include + +const TInt KIndicatorTap = 0xFFFF; + +EXPORT_C CAknSmallIndicator* CAknSmallIndicator::NewL(TUid aIndicatorUid) + { + CAknSmallIndicator* self = NewLC(aIndicatorUid); + CleanupStack::Pop(); // self + return self; + } + +EXPORT_C CAknSmallIndicator* CAknSmallIndicator::NewLC(TUid aIndicatorUid) + { + CAknSmallIndicator* self = new(ELeave) CAknSmallIndicator; + CleanupStack::PushL(self); + self->ConstructL(aIndicatorUid); + return self; + } + +EXPORT_C CAknSmallIndicator::~CAknSmallIndicator() + { + } + +CAknSmallIndicator::CAknSmallIndicator() : CAknNotifyBase(KAknSmallIndicatorUid) + { + } + +void CAknSmallIndicator::ConstructL(TUid aIndicatorUid) + { + CAknNotifyBase::ConstructL(); + iIndicatorUid = aIndicatorUid; + } + +EXPORT_C void CAknSmallIndicator::SetIndicatorStateL(TInt aState) + { + RThread thread; + + if ( thread.HasCapability( ECapabilityWriteDeviceData ) ) + { + TPckgBuf > pckg; + pckg().iParamData.iSmallIndicatorUid = iIndicatorUid; + pckg().iParamData.iValue = aState; + TBuf8<1> resp; + StartOrUpdateL(pckg, resp); + } + + thread.Close(); + } + +EXPORT_C void CAknSmallIndicator::CAknNotifyBase_Reserved() + { + } + +EXPORT_C void CAknSmallIndicator::HandleIndicatorTapL() + { + TPckgBuf > pckg; + pckg().iParamData.iSmallIndicatorUid = iIndicatorUid; + pckg().iParamData.iValue = KIndicatorTap; + TBuf8<1> resp; + StartOrUpdateL(pckg, resp); + } + +// End of File