2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FNet_UsbSystemNetConnection.h
19 * @brief This is the header file for the %_UsbSystemNetConnection class.
21 * This header file contains the declarations of the %_UsbSystemNetConnection class.
24 #ifndef _FNET_INTERNAL_USB_SYSTEM_NET_CONNECTION_H_
25 #define _FNET_INTERNAL_USB_SYSTEM_NET_CONNECTION_H_
27 #include "FNet_SystemNetConnection.h"
28 #include "FNet_NetUtility.h"
30 namespace Tizen { namespace Net {
32 * @class _UsbSystemNetConnection
33 * @brief This class provides methods for a USB system network connection.
37 * This class provides methods for a system network connection.
40 class _UsbSystemNetConnection
41 : public _SystemNetConnection
45 * This is the default constructor for this class.
47 _UsbSystemNetConnection(void);
50 * This is the destructor for this class.
52 virtual ~_UsbSystemNetConnection(void);
55 * Initializes this instance with the specified account.
59 * @return An error code
60 * @exception E_SUCCESS The method was successful.
61 * @exception E_INVALID_STATE This instance is in an invalid state.
62 * @exception E_INVALID_ACCOUNT The specified network account is invalid.
63 * @exception E_SYSTEM An internal error occurred.
65 result Construct(void);
67 void UpdateConnectionInfo(bool isStarted);
71 * This is the copy constructor for this class.
73 * @param[in] rhs An instance of _UsbSystemNetConnection
75 _UsbSystemNetConnection(const _UsbSystemNetConnection& rhs);
78 * This is the assignment operator. Do @b not use directly.
80 * @param[in] rhs An instance of _UsbSystemNetConnection
82 _UsbSystemNetConnection& operator =(const _UsbSystemNetConnection& rhs);
85 std::unique_ptr<void, _TetheringDeleter> __pTetheringHandle;
87 }; // _UsbSystemNetConnection
90 #endif // _FNET_INTERNAL_USB_SYSTEM_NET_CONNECTION_H_