gssettingsuis/Gs/GSFramework/src/GsContainerExt.cpp
branchRCL_3
changeset 54 7e0eff37aedb
parent 41 3b67655da2cc
equal deleted inserted replaced
53:8ee96d21d9bf 54:7e0eff37aedb
       
     1 /*
       
     2 * Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Container for GSParentPlugin.
       
    15 *
       
    16 */
       
    17 
       
    18 #include "GsContainerExt.h"
       
    19 
       
    20 const TInt KInterval = 1000000; // 1 seconds
       
    21 
       
    22 // ========================= MEMBER FUNCTIONS ================================
       
    23 // -----------------------------------------------------------------------------
       
    24 // CGsDoubleClickPreventer::CGsDoubleClickPreventer()
       
    25 //
       
    26 //
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CGsDoubleClickPreventer::CGsDoubleClickPreventer()
       
    30                         : CTimer(CActive::EPriorityStandard)
       
    31     {
       
    32     }
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CGsDoubleClickPreventer::NewL()
       
    36 //
       
    37 //
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 EXPORT_C CGsDoubleClickPreventer* CGsDoubleClickPreventer::NewL()
       
    41     {
       
    42     CGsDoubleClickPreventer* self = new(ELeave) CGsDoubleClickPreventer();
       
    43     CleanupStack::PushL(self);
       
    44     self->ConstructL();
       
    45     CleanupStack::Pop(self);
       
    46     return self;
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CGsDoubleClickPreventer::ConstructL()
       
    51 //
       
    52 //
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 void CGsDoubleClickPreventer::ConstructL()
       
    56     {
       
    57     CTimer::ConstructL();
       
    58     CActiveScheduler::Add(this);    
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // CGsDoubleClickPreventer::Start()
       
    63 //
       
    64 //
       
    65 // -----------------------------------------------------------------------------
       
    66 //
       
    67 EXPORT_C void CGsDoubleClickPreventer::Start()
       
    68     {
       
    69     if(!IsActive())
       
    70         {
       
    71         After(KInterval);
       
    72         }
       
    73     }
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CGsContainerExt::NewL()
       
    77 //
       
    78 //
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 EXPORT_C CGsContainerExt* CGsContainerExt::NewL()
       
    82     {
       
    83     CGsContainerExt* self = new(ELeave) CGsContainerExt;
       
    84     CleanupStack::PushL(self);
       
    85     self->ConstructL();
       
    86     CleanupStack::Pop(self);
       
    87     return self;
       
    88     }
       
    89 
       
    90 // -----------------------------------------------------------------------------
       
    91 // CGsContainerExt::ConstructL()
       
    92 //
       
    93 //
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 void CGsContainerExt::ConstructL()
       
    97     {
       
    98     iDblClickPreventer = CGsDoubleClickPreventer::NewL();
       
    99     }
       
   100