2 * Copyright 2004-2015 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _NETWORK_PROFILE_H
6 #define _NETWORK_PROFILE_H
13 namespace BNetworkKit
{
16 class BNetworkProfile
{
19 BNetworkProfile(const char* path
);
20 BNetworkProfile(const entry_ref
& ref
);
21 BNetworkProfile(const BEntry
& entry
);
22 virtual ~BNetworkProfile();
24 status_t
SetTo(const char* path
);
25 status_t
SetTo(const entry_ref
& ref
);
26 status_t
SetTo(const BEntry
& entry
);
31 status_t
SetName(const char* name
);
36 status_t
MakeCurrent();
39 static BNetworkProfile
* Default();
40 static BNetworkProfile
* Current();
49 static BDirectory
* fProfilesRoot
;
53 } // namespace BNetworkKit
56 #endif // _NETWORK_PROFILE_H