2 // Open Service Platform
3 // Copyright (c) 2012 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.
19 * @file FSys_DeviceId.h
20 * @brief This is the header file for _DeviceId class.
24 #ifndef _FSYS_INTERNAL_DEVICE_ID_H_
25 #define _FSYS_INTERNAL_DEVICE_ID_H_
28 #include <FOspConfig.h>
30 namespace Tizen { namespace Base
36 namespace Tizen { namespace System
44 * Gets device unique ID.
47 * @return An error code
48 * @param[out] deviceId The device unique ID.
49 * @exception E_SUCCESS The method is successful.
50 * @exception E_OUT_OF_MEMORY The memory is insufficient.
51 * @exception E_SYSTEM A system error has occurred.
53 static result GetId(Tizen::Base::String& deviceId);
57 * This is the default constructor for this class.
62 * This is the destructor for this class.
66 static result GenerateCrc64(Tizen::Base::ByteBuffer& input, unsigned long long int& value);
67 static result Base32Encode(Tizen::Base::ByteBuffer& input, Tizen::Base::ByteBuffer& output);
68 static Tizen::Base::String __deviceId;
73 #endif // _FSYS_INTERNAL_DEVICE_ID_H_