xref: /haiku/src/servers/input/PathList.h (revision 23debb05d034dcc04cd6cb0735189609abe8e2d3)
1 /*
2  * Copyright 2008 Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Axel Dörfler, axeld@pinc-software.de
7  */
8 #ifndef PATH_LIST_H
9 #define PATH_LIST_H
10 
11 
12 #include <ObjectList.h>
13 
14 
15 class PathList {
16 public:
17 							PathList();
18 							~PathList();
19 
20 			bool			HasPath(const char* path,
21 								int32* _index = NULL) const;
22 			status_t		AddPath(const char* path);
23 			status_t		RemovePath(const char* path);
24 
25 			int32			CountPaths() const;
26 			const char*		PathAt(int32 index) const;
27 private:
28 	struct path_entry;
29 
30 			BObjectList<path_entry> fPaths;
31 };
32 
33 #endif	// _DEVICE_MANAGER_H
34