wapstack/wapmessageapi/sws/WapSwsTimeOut.h
author hgs
Mon, 19 Jul 2010 14:53:33 +0100
changeset 52 60785a088077
parent 44 8b72faa1200f
permissions -rw-r--r--
201025_04
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     1
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     2
// All rights reserved.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     7
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     8
// Initial Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    10
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    11
// Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    12
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    13
// Description:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    14
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    15
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    16
#ifndef __TIMEOUT_H__
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    17
#define __TIMEOUT_H__
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    18
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    19
// Class definitions to support the recive with timeout methods
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    20
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    21
#include <e32base.h>
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    22
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    23
// MTimeOutNotify: used in conjunction with CTimeOutTimer class
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    24
class MTimeOutNotify
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    25
	{
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    26
public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    27
	virtual void TimerExpired() = 0;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    28
	};
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    29
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    30
// CTimeOutTimer: timer for comms time-outs
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    31
class CTimeOutTimer: public CTimer
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    32
	{
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    33
public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    34
	static CTimeOutTimer* NewL(MTimeOutNotify& aTimeOutNotify);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    35
	~CTimeOutTimer();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    36
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    37
protected:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    38
    CTimeOutTimer(MTimeOutNotify& aTimeOutNotify);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    39
	void ConstructL();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    40
    virtual void RunL();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    41
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    42
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    43
	MTimeOutNotify& iNotify;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    44
	};
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    45
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    46
#endif // __TIMEOUT_H__