gssettingsuis/Gs/GSFramework/src/GsContainerExt.cpp
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:20:44 +0100
branchRCL_3
changeset 25 7e0eff37aedb
parent 20 3b67655da2cc
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* 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();
    }