2 * Copyright 2004-2015 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
7 #include <NetworkProfile.h>
12 using namespace BNetworkKit
;
15 BNetworkProfile::BNetworkProfile()
24 BNetworkProfile::BNetworkProfile(const char* path
)
33 BNetworkProfile::BNetworkProfile(const entry_ref
& ref
)
42 BNetworkProfile::BNetworkProfile(const BEntry
& entry
)
51 BNetworkProfile::~BNetworkProfile()
57 BNetworkProfile::SetTo(const char* path
)
59 status_t status
= fEntry
.SetTo(path
, true);
70 BNetworkProfile::SetTo(const entry_ref
& ref
)
72 status_t status
= fEntry
.SetTo(&ref
);
83 BNetworkProfile::SetTo(const BEntry
& entry
)
93 BNetworkProfile::Name()
96 if (fEntry
.GetPath(&fPath
) == B_OK
)
105 BNetworkProfile::SetName(const char* name
)
112 BNetworkProfile::Exists()
114 return fEntry
.Exists();
119 BNetworkProfile::Delete()
126 BNetworkProfile::IsDefault()
133 BNetworkProfile::IsCurrent()
140 BNetworkProfile::MakeCurrent()
150 BNetworkProfile::Default()
157 BNetworkProfile::Current()