--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gssettingsuis/Gs/GSFramework/src/GsContainerExt.cpp Mon Jun 21 15:59:17 2010 +0300
@@ -0,0 +1,100 @@
+/*
+* Copyright (c) 2005-2008 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.
+*
+*/
+
+#include "GsContainerExt.h"
+
+const TInt KInterval = 1000000; // 1 seconds
+
+// ========================= MEMBER FUNCTIONS ================================
+// -----------------------------------------------------------------------------
+// CGsDoubleClickPreventer::CGsDoubleClickPreventer()
+//
+//
+// -----------------------------------------------------------------------------
+//
+CGsDoubleClickPreventer::CGsDoubleClickPreventer()
+ : CTimer(CActive::EPriorityStandard)
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// CGsDoubleClickPreventer::NewL()
+//
+//
+// -----------------------------------------------------------------------------
+//
+EXPORT_C CGsDoubleClickPreventer* CGsDoubleClickPreventer::NewL()
+ {
+ CGsDoubleClickPreventer* self = new(ELeave) CGsDoubleClickPreventer();
+ CleanupStack::PushL(self);
+ self->ConstructL();
+ CleanupStack::Pop(self);
+ return self;
+ }
+
+// -----------------------------------------------------------------------------
+// CGsDoubleClickPreventer::ConstructL()
+//
+//
+// -----------------------------------------------------------------------------
+//
+void CGsDoubleClickPreventer::ConstructL()
+ {
+ CTimer::ConstructL();
+ CActiveScheduler::Add(this);
+ }
+
+// -----------------------------------------------------------------------------
+// CGsDoubleClickPreventer::Start()
+//
+//
+// -----------------------------------------------------------------------------
+//
+EXPORT_C void CGsDoubleClickPreventer::Start()
+ {
+ if(!IsActive())
+ {
+ After(KInterval);
+ }
+ }
+
+// -----------------------------------------------------------------------------
+// CGsContainerExt::NewL()
+//
+//
+// -----------------------------------------------------------------------------
+//
+EXPORT_C CGsContainerExt* CGsContainerExt::NewL()
+ {
+ CGsContainerExt* self = new(ELeave) CGsContainerExt;
+ CleanupStack::PushL(self);
+ self->ConstructL();
+ CleanupStack::Pop(self);
+ return self;
+ }
+
+// -----------------------------------------------------------------------------
+// CGsContainerExt::ConstructL()
+//
+//
+// -----------------------------------------------------------------------------
+//
+void CGsContainerExt::ConstructL()
+ {
+ iDblClickPreventer = CGsDoubleClickPreventer::NewL();
+ }
+