testtoolsconn/stat/desktop/source/lib/inc/statlist.h
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef STATLIST30_H
       
    22 #define STATLIST30_H
       
    23 
       
    24 #include "statmember.h"
       
    25 
       
    26 #define MAX_VERSION_LEN 32
       
    27 
       
    28 class STATDLLList
       
    29 {
       
    30 public:
       
    31 	STATDLLList();
       
    32 	~STATDLLList();
       
    33 	int SetLogging(const char *path);
       
    34 	void StopLogging();
       
    35 	DWORD CreateListMember(const STATCONNECTTYPE iConnectType, const char *pszPlatformType);
       
    36 	STATDLLMember* Member(const DWORD dwHandle);
       
    37 	bool RemoveListMember(const DWORD dwHandle);
       
    38 	bool ListExists() { return (ListStart != 0); }
       
    39 	char *Version() { return szVersion; }
       
    40 
       
    41 	char szErrorText[MAX_ERROR_MSG_LEN * 2];	// connection error message (if any)
       
    42 
       
    43 private:
       
    44 	void WalkList();
       
    45 
       
    46 	Reporter oRep;								// debug logging
       
    47 	STATDLLMember *ListStart;					// start of connection list
       
    48 	char szVersion[MAX_VERSION_LEN];
       
    49 };
       
    50 
       
    51 // stat connection list
       
    52 extern STATDLLList aList;
       
    53 
       
    54 #endif // STATLIST30_H