24
|
1 |
// Copyright (c) 2006-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 |
// Defines the factory class which is used to instantiate the RAW IP.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef RAWIPFLOWFACTORY_H__
|
|
23 |
#define RAWIPFLOWFACTORY_H__
|
|
24 |
|
|
25 |
#include <e32base.h>
|
|
26 |
#include <e32std.h>
|
|
27 |
#include <comms-infras/ss_subconnflow.h>
|
|
28 |
#include <comms-infras/ss_protflow.h>
|
|
29 |
|
|
30 |
#include "bttlog.h"
|
|
31 |
|
|
32 |
/**
|
|
33 |
RawIP Flow Implementation UID
|
|
34 |
*/
|
|
35 |
const TInt KRawIpFlowImplUid = 0x10281DF2;
|
|
36 |
|
|
37 |
|
|
38 |
class CRawIPFlowFactory : public ESock::CSubConnectionFlowFactoryBase
|
|
39 |
/**
|
|
40 |
RawIP Flow Factory
|
|
41 |
@internalComponent
|
|
42 |
*/
|
|
43 |
{
|
|
44 |
public:
|
|
45 |
static CRawIPFlowFactory* NewL(TAny* aConstructionParameters);
|
|
46 |
|
|
47 |
protected:
|
|
48 |
CRawIPFlowFactory(TUid aFactoryId, ESock::CSubConnectionFlowFactoryContainer& aParentContainer);
|
|
49 |
virtual ESock::CSubConnectionFlowBase* DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery);
|
|
50 |
|
|
51 |
private:
|
|
52 |
CBttLogger* iTheLogger; // only here to allow use of _LOG_LnCn() macros within factory
|
|
53 |
};
|
|
54 |
|
|
55 |
#endif
|