gssettingsuis/Gs/GSFramework/inc/GsContainerExt.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:59:17 +0300
branchRCL_3
changeset 20 3b67655da2cc
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* 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 <e32std.h>
#include <e32base.h>

// 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