hotspotfw/hsserver/src/hsslogouttimer.cpp
changeset 0 56b72877c1cb
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     1 /*
       
     2 * Copyright (c) 2006 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:   Timer for client logout procedures
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "hsslogouttimer.h"
       
    21 #include "hsslogouttimerobserver.h"
       
    22 #include "am_debug.h"
       
    23 
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CHssLogoutTimer::CHssLogoutTimer
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 // ---------------------------------------------------------------------------
       
    33 //
       
    34 CHssLogoutTimer::CHssLogoutTimer( MHssLogoutTimerObserver& aObserver )
       
    35 : CTimer( EPriorityStandard ), iObserver( aObserver )
       
    36     {
       
    37     
       
    38     }
       
    39 
       
    40 
       
    41 // ---------------------------------------------------------------------------
       
    42 // CHssLogoutTimer::ConstructL
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 void CHssLogoutTimer::ConstructL()
       
    46     {
       
    47     DEBUG("CHssLogoutTimer::ConstructL()");
       
    48     CTimer::ConstructL();
       
    49     CActiveScheduler::Add(this);
       
    50     }
       
    51 
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // CHssLogoutTimer::NewL
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 CHssLogoutTimer* CHssLogoutTimer::NewL( MHssLogoutTimerObserver& aObserver )
       
    58     {
       
    59     CHssLogoutTimer* self = new( ELeave ) CHssLogoutTimer( aObserver );
       
    60     CleanupStack::PushL( self );
       
    61     self->ConstructL();
       
    62     CleanupStack::Pop( self );
       
    63 
       
    64     return self;
       
    65     }
       
    66 
       
    67 
       
    68 // ---------------------------------------------------------------------------
       
    69 // CHssLogoutTimer::~CHssLogoutTimer
       
    70 // ---------------------------------------------------------------------------
       
    71 //
       
    72 CHssLogoutTimer::~CHssLogoutTimer()
       
    73     {
       
    74     CTimer::Cancel();
       
    75     }
       
    76 
       
    77 // ---------------------------------------------------------------------------
       
    78 // CHssLogoutTimer::RunL
       
    79 // ---------------------------------------------------------------------------
       
    80 //  
       
    81 void CHssLogoutTimer::RunL()
       
    82 	{
       
    83 	DEBUG("CHssLogoutTimer::RunL()");
       
    84     iObserver.LogoutTimeout();
       
    85 	}    
       
    86 	
       
    87 //  End of File