37
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#ifndef ASYNCWRITER_H_
|
|
17 |
#define ASYNCWRITER_H_
|
|
18 |
|
|
19 |
#include <qoslib.h>
|
|
20 |
#include <e32base.h>
|
|
21 |
#include "pfqoslib.h"
|
|
22 |
#include "pfqos_stream.h"
|
|
23 |
#include "qos_msg.h"
|
|
24 |
|
|
25 |
NONSHARABLE_CLASS(CAsyncWriter) : public CActive
|
|
26 |
{
|
|
27 |
public:
|
|
28 |
static CAsyncWriter* NewL(CQoSMsgWriter* aWriter);
|
|
29 |
void Send(CQoSMsg* aMessage);
|
|
30 |
protected:
|
|
31 |
CAsyncWriter(CQoSMsgWriter* aWriter);
|
|
32 |
void ConstructL();
|
|
33 |
void RunL();
|
|
34 |
void DoCancel();
|
|
35 |
private:
|
|
36 |
CQoSMsgWriter* iWriter;
|
|
37 |
CQoSMsg* iMessage;
|
|
38 |
TSglQue<CQoSMsg> iPendingMsg;
|
|
39 |
};
|
|
40 |
|
|
41 |
#endif //ASYNCWRITER_H_ |