diff -r 6465d5bb863a -r 13e71d907dc3 gssettingsuis/Gs/GSFramework/inc/GsContainerExt.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gssettingsuis/Gs/GSFramework/inc/GsContainerExt.h Thu Nov 04 13:38:47 2010 +0800 @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2005 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: Container for GSParentPlugin. +* +*/ + +#ifndef GSCONTAINEREXT_H +#define GSCONTAINEREXT_H + +// INCLUDES +#include +#include + +// CLASS DECLARATION +class MGSWatchDog; + +/* + * Double click preventer. + */ +class CGsDoubleClickPreventer : public CTimer + { +public: + IMPORT_C static CGsDoubleClickPreventer* NewL(); + + CGsDoubleClickPreventer(); + IMPORT_C void Start(); +private: + void ConstructL(); +protected: + void RunL() {}; + }; + +/** + * Extension for container. + * + */ +class CGsContainerExt : public CBase + { +public: + IMPORT_C static CGsContainerExt* NewL(); + ~CGsContainerExt() + { + iDblClickPreventer->Cancel(); + delete iDblClickPreventer; + } +private: + void ConstructL(); +public: + MGSWatchDog* iGSWatchDog; + CGsDoubleClickPreventer* iDblClickPreventer; + + }; + +#endif // GSCONTAINEREXT_H