1 // Copyright 2015 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef SYSTEM_API_DBUS_APMANAGER_DBUS_CONSTANTS_H_ 6 #define SYSTEM_API_DBUS_APMANAGER_DBUS_CONSTANTS_H_ 7 8 namespace apmanager { 9 const char kServiceName[] = "org.chromium.apmanager"; 10 const char kManagerInterface[] = "org.chromium.apmanager.Manager"; 11 const char kManagerPath[] = "/manager"; 12 const char kManagerError[] = "org.chromium.apmanager.Manager.Error"; 13 const char kServiceInterface[] = "org.chromium.apmanager.Service"; 14 const char kServiceError[] = "org.chromium.apmanager.Service.Error"; 15 const char kConfigInterface[] = "org.chromium.apmanager.Config"; 16 const char kConfigError[] = "org.chromium.apmanager.Config.Error"; 17 const char kClientInterface[] = "org.chromium.apmanager.Client"; 18 const char kDeviceInterface[] = "org.chromium.apmanager.Device"; 19 20 // Manager Methods. 21 const char kCreateServiceMethod[] = "CreateService"; 22 const char kRemoveServiceMethod[] = "RemoveService"; 23 24 // Config Properties. 25 const char kConfigSSIDProperty[] = "Ssid"; 26 const char kConfigInterfaceNameProperty[] = "InterfaceName"; 27 const char kConfigSecurityModeProperty[] = "SecurityMode"; 28 const char kConfigPassphraseProperty[] = "Passphrase"; 29 const char kConfigHwModeProperty[] = "HwMode"; 30 const char kConfigOperationModeProperty[] = "OperationMode"; 31 const char kConfigChannelProperty[] = "Channel"; 32 const char kConfigHiddenNetworkProperty[] = "HiddenNetwork"; 33 const char kConfigBridgeInterfaceProperty[] = "BridgeInterface"; 34 const char kConfigServerAddressIndexProperty[] = "ServerAddressIndex"; 35 36 // Security modes. 37 const char kSecurityModeNone[] = "none"; 38 const char kSecurityModeRSN[] = "rsn"; 39 40 // Hardware modes. 41 const char kHwMode80211a[] = "802.11a"; 42 const char kHwMode80211b[] = "802.11b"; 43 const char kHwMode80211g[] = "802.11g"; 44 const char kHwMode80211n[] = "802.11n"; 45 const char kHwMode80211ac[] = "802.11ac"; 46 47 // Operation modes. 48 const char kOperationModeServer[] = "server"; 49 const char kOperationModeBridge[] = "bridge"; 50 51 // D-Bus error codes. 52 const char kErrorInternalError[] = 53 "org.chromium.apmanager.Error.InternalError"; 54 const char kErrorInvalidArguments[] = 55 "org.chromium.apmanager.Error.InvalidArguments"; 56 const char kErrorInvalidConfiguration[] = 57 "org.chromium.apmanager.Error.InvalidConfiguration"; 58 const char kErrorSuccess[] = "org.chromium.apmanager.Error.Success"; 59 60 } // namespace apmanager 61 62 #endif // SYSTEM_API_DBUS_APMANAGER_DBUS_CONSTANTS_H_ 63