testtoolsconn/stat/desktop/source/lib/inc/statlist.h
author Johnson Ma <johnson.ma@nokia.com>
Mon, 08 Mar 2010 15:04:18 +0800
changeset 0 3da2a79470a7
permissions -rw-r--r--
Initial EPL Contribution

/*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  
*
*/




#ifndef STATLIST30_H
#define STATLIST30_H

#include "statmember.h"

#define MAX_VERSION_LEN 32

class STATDLLList
{
public:
	STATDLLList();
	~STATDLLList();
	int SetLogging(const char *path);
	void StopLogging();
	DWORD CreateListMember(const STATCONNECTTYPE iConnectType, const char *pszPlatformType);
	STATDLLMember* Member(const DWORD dwHandle);
	bool RemoveListMember(const DWORD dwHandle);
	bool ListExists() { return (ListStart != 0); }
	char *Version() { return szVersion; }

	char szErrorText[MAX_ERROR_MSG_LEN * 2];	// connection error message (if any)

private:
	void WalkList();

	Reporter oRep;								// debug logging
	STATDLLMember *ListStart;					// start of connection list
	char szVersion[MAX_VERSION_LEN];
};

// stat connection list
extern STATDLLList aList;

#endif // STATLIST30_H