From 09554a6acae8a839cc8f484bb7ae49a16505c910 Mon Sep 17 00:00:00 2001 From: Suchita Date: Thu, 11 Jul 2013 16:25:21 +0600 Subject: [PATCH] Beautified source code of appfw/src/base/inc Change-Id: Id85ea3249e3298b0c9aa036d8cb97eadecac380b Signed-off-by: Suchita --- src/base/inc/FBaseInternalTypes.h | 5 +- src/base/inc/FBaseRtIEvent.h | 17 +- src/base/inc/FBaseRtIEventFilter.h | 8 +- src/base/inc/FBaseRt_Event.h | 23 ++- src/base/inc/FBaseRt_EventDispatcher.h | 33 ++-- src/base/inc/FBaseRt_IEventListener.h | 8 +- src/base/inc/FBaseRt_ITask.h | 8 +- src/base/inc/FBaseRt_LibraryImpl.h | 46 +++--- src/base/inc/FBaseRt_MainLoop.h | 29 ++-- src/base/inc/FBaseRt_Process.h | 7 +- src/base/inc/FBaseUtil_IcuConverter.h | 5 +- src/base/inc/FBase_Exception.h | 275 ++++++++++++++++---------------- src/base/inc/FBase_HandleT.h | 28 ++-- src/base/inc/FBase_LocalizedNumParser.h | 11 +- src/base/inc/FBase_Log.h | 5 +- src/base/inc/FBase_NativeError.h | 6 +- src/base/inc/FBase_ObjectManagerImpl.h | 10 +- src/base/inc/FBase_ObjectManagerT.h | 30 ++-- src/base/inc/FBase_String.h | 18 +-- src/base/inc/FBase_StringConverter.h | 7 +- 20 files changed, 245 insertions(+), 334 deletions(-) mode change 100755 => 100644 src/base/inc/FBase_ObjectManagerImpl.h diff --git a/src/base/inc/FBaseInternalTypes.h b/src/base/inc/FBaseInternalTypes.h index d81e08d..3f6830c 100644 --- a/src/base/inc/FBaseInternalTypes.h +++ b/src/base/inc/FBaseInternalTypes.h @@ -18,7 +18,6 @@ * @file FBaseInternalTypes.h * @brief This is the header file for the FBase internal types */ - #ifndef _FBASE_INTERNAL_TYPES_H_ #define _FBASE_INTERNAL_TYPES_H_ @@ -60,7 +59,5 @@ enum _ApiVisibility _API_VISIBILITY_PARTNER_MANUFACTURER = 220, _API_VISIBILITY_MAX = 65535 }; - }} // Tizen::Base - -#endif // _FBASE_INTERNAL_TYPES_H_ +#endif // _FBASE_INTERNAL_TYPES_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseRtIEvent.h b/src/base/inc/FBaseRtIEvent.h index fbb820a..d69dc82 100644 --- a/src/base/inc/FBaseRtIEvent.h +++ b/src/base/inc/FBaseRtIEvent.h @@ -18,22 +18,18 @@ * @file FBaseRtIEvent.h * @brief This is the header file for IEvent. */ - #ifndef _FRT_IEVENT_H_ #define _FRT_IEVENT_H_ - #include #include #include "FBaseRtIEventFilter.h" #include "FBaseRtIEventArg.h" - namespace Tizen { namespace Base { namespace Runtime { - // forward declaration class _EventDispatcher; @@ -70,7 +66,6 @@ public: // virtual ~IEvent(void) {} - /** * Adds a filter object. * Added filter can process all the fired events before event listening. @@ -87,7 +82,6 @@ public: */ virtual result AddFilter(const IEventFilter& filter) = 0; - /** * Removes a filter object. * @@ -103,7 +97,6 @@ public: */ virtual result RemoveFilter(const IEventFilter& filter) = 0; - /** * Adds a listener object. * Added listener can listen to events when they are fired. @@ -119,7 +112,6 @@ public: */ virtual result AddListener(const IEventListener& listener) = 0; - /** * Removes a listener object. * Removed listener cannot listen to events when they are fired. @@ -136,7 +128,6 @@ public: */ virtual result RemoveListener(const IEventListener& listener) = 0; - /** * Fires the event with event argument. * All listeners that are added to this method listen when it is called. @@ -155,15 +146,9 @@ public: */ virtual bool Fire(const IEventArg& arg, bool async) = 0; - virtual int AddRef(void) = 0; - virtual int Release(void) = 0; }; - - -} } } // Tizen::Runtime - - +}}} // Tizen::Runtime #endif diff --git a/src/base/inc/FBaseRtIEventFilter.h b/src/base/inc/FBaseRtIEventFilter.h index 7dc2625..9442d4c 100644 --- a/src/base/inc/FBaseRtIEventFilter.h +++ b/src/base/inc/FBaseRtIEventFilter.h @@ -20,11 +20,9 @@ * * This file contains the declarations of the %IEventFilter class. */ - #ifndef _FBASE_RT_IEVENT_FILTER_H_ #define _FBASE_RT_IEVENT_FILTER_H_ - #include namespace Tizen { namespace Base { namespace Runtime @@ -68,7 +66,5 @@ public: */ virtual bool Filter(const IEventArg& eventArg) = 0; }; // IEventArg - -} } } // Tizen::Runtime - -#endif // _FBASE_RT_IEVENT_FILTER_H_ +}}} // Tizen::Runtime +#endif // _FBASE_RT_IEVENT_FILTER_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseRt_Event.h b/src/base/inc/FBaseRt_Event.h index 23d36e7..884968b 100755 --- a/src/base/inc/FBaseRt_Event.h +++ b/src/base/inc/FBaseRt_Event.h @@ -20,7 +20,6 @@ * * This file contains the declarations of the %_Event class. */ - #ifndef _FBASE_RT_INTERNAL_EVENT_H_ #define _FBASE_RT_INTERNAL_EVENT_H_ @@ -34,8 +33,6 @@ #include "FBase_HandleT.h" #include "FBase_ObjectManagerT.h" - - namespace Tizen { namespace Base { namespace Runtime { @@ -72,13 +69,13 @@ public: * * @since 2.0 * - * @return An error code - * @param[in] listener Listener to add - * @param[in] calledByCallerThread true, to call the listener on the caller thread of this method - * false, to call the listener on the thread in which the event is created. - * @exception E_SUCCESS This method is successful. - * @exception E_OBJ_ALREADY_EXIST The listener already exists. - * @exception E_INVALID_OPERATION calledByCallerThread is set to true but the caller thread is a worker thread. + * @return An error code + * @param[in] listener Listener to add + * @param[in] calledByCallerThread true, to call the listener on the caller thread of this method + * false, to call the listener on the thread in which the event is created. + * @exception E_SUCCESS This method is successful. + * @exception E_OBJ_ALREADY_EXIST The listener already exists. + * @exception E_INVALID_OPERATION calledByCallerThread is set to true but the caller thread is a worker thread. */ result AddListener(const IEventListener& listener, bool calledByCallerThread = false); @@ -273,7 +270,5 @@ private: friend class _EventManager; }; // _Event - -} } } // Tizen::Base::Runtime - -#endif // _FBASE_RT_INTERNAL_EVENT_H_ +}}} // Tizen::Base::Runtime +#endif // _FBASE_RT_INTERNAL_EVENT_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseRt_EventDispatcher.h b/src/base/inc/FBaseRt_EventDispatcher.h index 1301ba9..012fa14 100644 --- a/src/base/inc/FBaseRt_EventDispatcher.h +++ b/src/base/inc/FBaseRt_EventDispatcher.h @@ -20,8 +20,6 @@ * * This file contains the declarations of the %_EventDispatcher class. */ - - #ifndef _FBASE_RT_INTERNAL_EVENT_DISPATCHER_H_ #define _FBASE_RT_INTERNAL_EVENT_DISPATCHER_H_ @@ -56,7 +54,6 @@ public: */ _EventDispatcher(void); - /** * This is the destructor for this class * @since 2.0 @@ -67,10 +64,10 @@ public: * Initializes this instanc of %_EventDispatcher. * * @since 2.0 - * @return An error code - * @param[in] pGMainContext A GMainLoopContext - * @exception E_SUCCESS The method was successful. - * @exception E_SYSTEM An unknown operating system error occurred. + * @return An error code + * @param[in] pGMainContext A GMainLoopContext + * @exception E_SUCCESS The method was successful. + * @exception E_SYSTEM An unknown operating system error occurred. */ result Construct(GMainContext* pGMainContext); @@ -78,28 +75,26 @@ public: * Returns an %_EventDispatcher of current thread. * * @since 2.0 - * @return The pointer of _EventDispatcher + * @return The pointer of _EventDispatcher */ static _EventDispatcher* GetCurrentEventDispatcher(void); - /** * Add an asynchronous task to an %_EventDispatcher. * * @since 2.0 - * @return An error code - * @param[in] pITask An _ITask to send - * @param[in] pParam A param - * @exception E_SUCCESS The method was successful. + * @return An error code + * @param[in] pITask An _ITask to send + * @param[in] pParam A param + * @exception E_SUCCESS The method was successful. */ result PutTask(_ITask* pITask, void* pParam); - /** * Returns the GMainContext * * @since 2.0 - * @return The pointer of GMainContext + * @return The pointer of GMainContext */ GMainContext* GetGMainContext(void); @@ -122,12 +117,10 @@ private: private: Mutex* __pMutex; - Tizen::Base::Collection::LinkedListT <_EventMessage*> __events; + Tizen::Base::Collection::LinkedListT< _EventMessage* > __events; GMainContext* __pGMainContext; GIOChannel* __pEventFdIo; GSource* __pEventFdSource; }; // _EventDispatcher - -} } } // Tizen::Base::Runtime - -#endif // _FBASE_RT_INTERNAL_EVENT_DISPATCHER_H_ +}}} // Tizen::Base::Runtime +#endif // _FBASE_RT_INTERNAL_EVENT_DISPATCHER_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseRt_IEventListener.h b/src/base/inc/FBaseRt_IEventListener.h index 83b954a..d7de709 100644 --- a/src/base/inc/FBaseRt_IEventListener.h +++ b/src/base/inc/FBaseRt_IEventListener.h @@ -20,7 +20,6 @@ * * This file contains the declarations of the %_IEventListener class. */ - #ifndef _FBASE_RT_INTERNAL_IEVENT_LISTENER_H_ #define _FBASE_RT_INTERNAL_IEVENT_LISTENER_H_ @@ -45,8 +44,5 @@ public: */ virtual ~_IEventListener(void) {} }; // _IEventListener - - -} } } // Tizen::Base::Runtime - -#endif // _FBASE_RT_INTERNAL_IEVENT_LISTENER_H_ +}}} // Tizen::Base::Runtime +#endif // _FBASE_RT_INTERNAL_IEVENT_LISTENER_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseRt_ITask.h b/src/base/inc/FBaseRt_ITask.h index 715f29f..1820520 100644 --- a/src/base/inc/FBaseRt_ITask.h +++ b/src/base/inc/FBaseRt_ITask.h @@ -20,7 +20,6 @@ * * This file contains the declarations of the %_ITask class. */ - #ifndef _FBASE_RT_INTERNAL_ITASK_H_ #define _FBASE_RT_INTERNAL_ITASK_H_ @@ -36,8 +35,5 @@ public: virtual ~_ITask(void); virtual void* DoTask(void* pParam) = 0; }; // _ITask - -} } } // Tizen::Base::Runtime - - -#endif // _FBASE_RT_INTERNAL_ITASK_H_ +}}} // Tizen::Base::Runtime +#endif // _FBASE_RT_INTERNAL_ITASK_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseRt_LibraryImpl.h b/src/base/inc/FBaseRt_LibraryImpl.h index 08db4bf..2f1682a 100644 --- a/src/base/inc/FBaseRt_LibraryImpl.h +++ b/src/base/inc/FBaseRt_LibraryImpl.h @@ -20,14 +20,16 @@ * * This file contains the declarations of the %_LibraryImpl class. */ - #ifndef _FBASE_RT_INTERNAL_LIBRARY_IMPL_H_ #define _FBASE_RT_INTERNAL_LIBRARY_IMPL_H_ #include #include -namespace Tizen { namespace Base { class String; }} +namespace Tizen { namespace Base +{ +class String; +}} namespace Tizen { namespace Base { namespace Runtime { @@ -39,16 +41,16 @@ namespace Tizen { namespace Base { namespace Runtime */ enum _LibraryLoadOption { - _LIBRARY_LOAD_OPTION_LAZY = 0x1, /** < Lazy binding. This option cannot be used with _LIBRARY_LOAD_OPTION_NOW */ - _LIBRARY_LOAD_OPTION_NOW = 0x2, /** < All undefined symbols in the library are resolved - This option cannot be used with _LIBRARY_LOAD_OPTION_LAZY. */ - _LIBRARY_LOAD_OPTION_GLOBAL = 0x4, /** < The symbols defined by this library will be made available for symbol - resolution of subsequently loaded libraries. - This option cannot be used with _LIBRARY_LOAD_OPTION_LOCAL */ - _LIBRARY_LOAD_OPTION_LOCAL = 0x8, /** < Symbols defined in this library are not made available to resolve references - in subsequently loaded libraries. - This option cannot be used with _LIBRARY_LOAD_OPTION_GLOBAL*/ - _LIBRARY_LOAD_OPTION_NODELETE = 0x10, /** < Do not unload the library during destroy*/ + _LIBRARY_LOAD_OPTION_LAZY = 0x1, /** < Lazy binding. This option cannot be used with _LIBRARY_LOAD_OPTION_NOW */ + _LIBRARY_LOAD_OPTION_NOW = 0x2, /** < All undefined symbols in the library are resolved + This option cannot be used with _LIBRARY_LOAD_OPTION_LAZY. */ + _LIBRARY_LOAD_OPTION_GLOBAL = 0x4, /** < The symbols defined by this library will be made available for symbol + resolution of subsequently loaded libraries. + This option cannot be used with _LIBRARY_LOAD_OPTION_LOCAL */ + _LIBRARY_LOAD_OPTION_LOCAL = 0x8, /** < Symbols defined in this library are not made available to resolve references + in subsequently loaded libraries. + This option cannot be used with _LIBRARY_LOAD_OPTION_GLOBAL*/ + _LIBRARY_LOAD_OPTION_NODELETE = 0x10, /** < Do not unload the library during destroy*/ }; /** @@ -87,13 +89,13 @@ public: * @param[in] libraryPath The path of the library file * @param[in] option Library loading option. One of _LIBRARY_LOAD_OPTION_LAZY or _LIBRARY_LOAD_OPTION_NOW must be included. * And a bitwise-or of other values in _LibraryLoadOption to it is possible. - * @return An error code + * @return An error code * - * @exception E_SUCCESS The method is successful. - * @exception E_LIBRARY_NOT_FOUND The library cannot be found. - * @exception E_INVALID_ARG The path is null or the option is invalid. - * @exception E_OUT_OF_MEMORY The memory is insufficient. - * @exception E_SYSTEM A system error has occurred. + * @exception E_SUCCESS The method is successful. + * @exception E_LIBRARY_NOT_FOUND The library cannot be found. + * @exception E_INVALID_ARG The path is null or the option is invalid. + * @exception E_OUT_OF_MEMORY The memory is insufficient. + * @exception E_SYSTEM A system error has occurred. */ result Construct(const Tizen::Base::String& libraryPath, unsigned long option = _LIBRARY_LOAD_OPTION_LAZY); @@ -102,7 +104,7 @@ public: * * @since 2.0 * - * @return The address of the specified symbol + * @return The address of the specified symbol * @param[in] symbol Symbol of the address to get * * @exception E_SUCCESS The method is successful. @@ -119,7 +121,5 @@ private: void* __pHandle; }; // _LibraryImpl - -} } } // Tizen::Base::Runtime - -#endif // _FBASE_RT_INTERNAL_LIBRARY_IMPL_H_ +}}} // Tizen::Base::Runtime +#endif // _FBASE_RT_INTERNAL_LIBRARY_IMPL_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseRt_MainLoop.h b/src/base/inc/FBaseRt_MainLoop.h index 1b5e4fc..03579cf 100644 --- a/src/base/inc/FBaseRt_MainLoop.h +++ b/src/base/inc/FBaseRt_MainLoop.h @@ -20,7 +20,6 @@ * * This file contains the declarations of the %_MainLoop class. */ - #ifndef _FBASE_RT_INTERNAL_MAIN_LOOP_H_ #define _FBASE_RT_INTERNAL_MAIN_LOOP_H_ @@ -66,10 +65,10 @@ public: * Initializes this instanc of %_MainLoop. * * @since 2.0 - * @return An error code - * @param[in] pGMainContext A GMainLoopContext - * @exception E_SUCCESS The method was successful. - * @exception E_SYSTEM An unknown operating system error occurred. + * @return An error code + * @param[in] pGMainContext A GMainLoopContext + * @exception E_SUCCESS The method was successful. + * @exception E_SYSTEM An unknown operating system error occurred. */ result Construct(GMainLoop* pGmainLoop, GMainContext* pGmainContext); @@ -79,7 +78,7 @@ public: * Returns an %_MainLoop of current thread. * * @since 2.0 - * @return The pointer of _MainLoop + * @return The pointer of _MainLoop */ static _MainLoop* GetCurrentMainLoop(void); @@ -95,8 +94,8 @@ private: RequestId requestId; const void* pArgs; - bool operator== (const _Message& rhs) const; - bool operator!= (const _Message& rhs) const; + bool operator ==(const _Message& rhs) const; + bool operator !=(const _Message& rhs) const; }; private: @@ -106,13 +105,11 @@ private: GSource* __pSource; Mutex* __pMutex; _IMainLoopEventListener* __pListener; - Tizen::Base::Collection::ArrayListT<_Message> __messages1; - Tizen::Base::Collection::ArrayListT<_Message> __messages2; - Tizen::Base::Collection::ArrayListT<_Message>* __pActive; - Tizen::Base::Collection::ArrayListT<_Message>* __pReady; + Tizen::Base::Collection::ArrayListT< _Message > __messages1; + Tizen::Base::Collection::ArrayListT< _Message > __messages2; + Tizen::Base::Collection::ArrayListT< _Message >* __pActive; + Tizen::Base::Collection::ArrayListT< _Message >* __pReady; }; // _MainLoop - -} } } // Tizen::Base::Runtime - -#endif // _FBASE_RT_INTERNAL_MAIN_LOOP_H_ +}}} // Tizen::Base::Runtime +#endif // _FBASE_RT_INTERNAL_MAIN_LOOP_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseRt_Process.h b/src/base/inc/FBaseRt_Process.h index 1f24364..68bba0a 100644 --- a/src/base/inc/FBaseRt_Process.h +++ b/src/base/inc/FBaseRt_Process.h @@ -20,7 +20,6 @@ * * This file contains the declarations of the %_Process class. */ - #ifndef _FBASE_RT_INTERNAL_PROCESS_H_ #define _FBASE_RT_INTERNAL_PROCESS_H_ @@ -77,7 +76,5 @@ private: ~_Process(void); }; // _Process - -} } } // Tizen::Base::Runtime - -#endif // _FBASE_RT_INTERNAL_PROCESS_H_ +}}} // Tizen::Base::Runtime +#endif // _FBASE_RT_INTERNAL_PROCESS_H_ \ No newline at end of file diff --git a/src/base/inc/FBaseUtil_IcuConverter.h b/src/base/inc/FBaseUtil_IcuConverter.h index 9fcce25..fafe7e4 100644 --- a/src/base/inc/FBaseUtil_IcuConverter.h +++ b/src/base/inc/FBaseUtil_IcuConverter.h @@ -18,7 +18,6 @@ * @file FBaseUtil_IcuConverter.h * @brief This is the header file for _ICUConverter. */ - #ifndef _FBASE_UTIL_ICU_CONVERTER_H_ #define _FBASE_UTIL_ICU_CONVERTER_H_ @@ -27,7 +26,6 @@ #include #include - namespace Tizen { namespace Base { namespace Utility { @@ -50,5 +48,4 @@ char* WcharToUtf8N(const wchar_t* pValue); wchar_t* Utf8ToWcharN(const char* pValue); }}} // Tizen::Base::Utility - -#endif // _FBASE_UTIL_ICU_CONVERTER_H_ +#endif // _FBASE_UTIL_ICU_CONVERTER_H_ \ No newline at end of file diff --git a/src/base/inc/FBase_Exception.h b/src/base/inc/FBase_Exception.h index b2fbd14..878ef4f 100644 --- a/src/base/inc/FBase_Exception.h +++ b/src/base/inc/FBase_Exception.h @@ -18,7 +18,6 @@ * @file FBase_Exception.h * @brief This file defines the exception types. */ - #ifndef _FBASE_INTERNAL_EXCEPTION_H_ #define _FBASE_INTERNAL_EXCEPTION_H_ @@ -31,24 +30,23 @@ typedef int Exception; */ enum _ExceptionBase { - GENERAL_EXCEPTION_GROUP, /**< %General Exception Group @n*/ - BASE_EXCEPTION_GROUP, /**< %Base Exception Group @n*/ - SERVICE_EXCEPTION_GROUP, /**< %Service Exception Group @n*/ - GROUP_EXCEPTION_GROUP, /**< %GROUP_ Exception Group @n*/ - SECURITY_EXCEPTION_GROUP, /**< %Security Exception Group @n*/ - STORAGE_EXCEPTION_GROUP, /**< %Storage Exception GROUP_*/ - CONTEXT_EXCEPTION_GROUP, /**< %Context Exception Group @n*/ + GENERAL_EXCEPTION_GROUP, /**< %General Exception Group @n*/ + BASE_EXCEPTION_GROUP, /**< %Base Exception Group @n*/ + SERVICE_EXCEPTION_GROUP, /**< %Service Exception Group @n*/ + GROUP_EXCEPTION_GROUP, /**< %GROUP_ Exception Group @n*/ + SECURITY_EXCEPTION_GROUP, /**< %Security Exception Group @n*/ + STORAGE_EXCEPTION_GROUP, /**< %Storage Exception GROUP_*/ + CONTEXT_EXCEPTION_GROUP, /**< %Context Exception Group @n*/ SECOND_LIFE_EXCEPTION_GROUP, /**< %Secondlife Exception Group @n*/ - LOCATION_EXCEPTION_GROUP, /**< %Location Exception Group @n*/ - EMS_CLIENT_EXCEPTION_GROUP, /**< %EMS client Exception Group @n*/ - DEVICE_EXCEPTION_GROUP, /**< %Device Exception Group @n*/ - UNDEFINED_EXCEPTION_GROUP /**< %Undefined Exception Group @n*/ + LOCATION_EXCEPTION_GROUP, /**< %Location Exception Group @n*/ + EMS_CLIENT_EXCEPTION_GROUP, /**< %EMS client Exception Group @n*/ + DEVICE_EXCEPTION_GROUP, /**< %Device Exception Group @n*/ + UNDEFINED_EXCEPTION_GROUP /**< %Undefined Exception Group @n*/ }; #define EXCEPTION_BASE(x) ((x) << 16) #define EXCEPTION_INDEX(x) ((x) & 0xffff) - #ifndef Success #define Success EXCEPTION_BASE(GENERAL_EXCEPTION_GROUP) #endif @@ -62,32 +60,32 @@ enum _Exceptions { // General exception OUT_OF_MEMORY = EXCEPTION_BASE(GENERAL_EXCEPTION_GROUP) + 1, /**< No sufficient memory to allocate */ - INDEX_OUT_OF_BOUNDS_EXCEPTION, /**< %The index of array is out of bounds. */ - INSTANCE_ALREADY_EXISTS_EXCEPTION, /**< %Instance already exists. */ - ILLEGAL_ARGUMENT_EXCEPTION, /**< %Input parameter(s) is/are invalid. */ - ILLEGAL_ACCESS_EXCEPTION, /**< %Operation is not permitted. */ - ILLEGAL_STATE_EXCEPTION, /**< %The current state is not proper for the next operation. */ - NULL_POINTER_EXCEPTION, /**< %Pointer is null. */ + INDEX_OUT_OF_BOUNDS_EXCEPTION, /**< %The index of array is out of bounds. */ + INSTANCE_ALREADY_EXISTS_EXCEPTION, /**< %Instance already exists. */ + ILLEGAL_ARGUMENT_EXCEPTION, /**< %Input parameter(s) is/are invalid. */ + ILLEGAL_ACCESS_EXCEPTION, /**< %Operation is not permitted. */ + ILLEGAL_STATE_EXCEPTION, /**< %The current state is not proper for the next operation. */ + NULL_POINTER_EXCEPTION, /**< %Pointer is null. */ UNDEFINED_TYPE_EXCEPTION, - NOT_IMPLEMENTED_EXCEPTION, /**< %Method is not yet implemented. */ - PARSE_EXCEPTION, /**< %Parsing of file/data failed. */ - DATA_FORMAT_EXCEPTION, /**< %Data format error has occurred. */ - SYSTEM_EXCEPTION, /**< %System operation is not working correctly. */ - IOEXCEPTION, /**< %I/O operation is not working correctly. */ - NETWORK_CONNECTION_EXCEPTION, /**< %Network is disconnected. */ - ARITHMETIC_EXCEPTION, /**< %Unexpected arithmetic exception */ - TIME_OUT_EXCEPTION, /**< %Timed operation is expired. */ - UNKNOWN_EXCEPTION, /**< %Unknown exception */ - UNKNOWN_ERROR, /**< %Unknown error @n*/ + NOT_IMPLEMENTED_EXCEPTION, /**< %Method is not yet implemented. */ + PARSE_EXCEPTION, /**< %Parsing of file/data failed. */ + DATA_FORMAT_EXCEPTION, /**< %Data format error has occurred. */ + SYSTEM_EXCEPTION, /**< %System operation is not working correctly. */ + IOEXCEPTION, /**< %I/O operation is not working correctly. */ + NETWORK_CONNECTION_EXCEPTION, /**< %Network is disconnected. */ + ARITHMETIC_EXCEPTION, /**< %Unexpected arithmetic exception */ + TIME_OUT_EXCEPTION, /**< %Timed operation is expired. */ + UNKNOWN_EXCEPTION, /**< %Unknown exception */ + UNKNOWN_ERROR, /**< %Unknown error @n*/ END_OF_GENERAL_EXCEPTION, // BASE_ exception - CREATE_FAILED_EXCEPTION, /**< The creation of an object failed. */ - NO_SUCH_INSTANCE_EXCEPTION, /**< Instance is not found. */ - COMPONENT_NOT_FOUND_EXCEPTION, /**< %Component is not found. */ - METHOD_NOT_FOUND_EXCEPTION, /**< %Class factory or general function entry is not found. */ - INTERFACE_NOT_FOUND_EXCEPTION, /**< %Interface is not found. */ - SECTION_NOT_FOUND_EXCEPTION, /**< %Section is not found. */ + CREATE_FAILED_EXCEPTION, /**< The creation of an object failed. */ + NO_SUCH_INSTANCE_EXCEPTION, /**< Instance is not found. */ + COMPONENT_NOT_FOUND_EXCEPTION, /**< %Component is not found. */ + METHOD_NOT_FOUND_EXCEPTION, /**< %Class factory or general function entry is not found. */ + INTERFACE_NOT_FOUND_EXCEPTION, /**< %Interface is not found. */ + SECTION_NOT_FOUND_EXCEPTION, /**< %Section is not found. */ ENTRY_NOT_FOUND_EXCEPTION, VALUE_NOT_ASSIGNED_EXCEPTION, INVALID_DOCUMENT_EXCEPTION, @@ -108,20 +106,20 @@ enum _Exceptions FILE_MEDIA_EJECTED_EXCEPTION, FILE_PANIC_EXCEPTION, - KEY_NOT_FOUND_EXCEPTION, /**< %key is not found. */ - ACTOR_NOT_FOUND_EXCEPTION, /**< %Actor is not found. */ + KEY_NOT_FOUND_EXCEPTION, /**< %key is not found. */ + ACTOR_NOT_FOUND_EXCEPTION, /**< %Actor is not found. */ CONTEXT_MODEL_NOT_FOUND_EXCEPTION, /**< %Context model is not found. */ - LISTENER_NOT_FOUND_EXCEPTION, /**< %Listner is not found. */ - CHANNEL_NOT_FOUND_EXCEPTION, /**< %Channel is not found */ + LISTENER_NOT_FOUND_EXCEPTION, /**< %Listner is not found. */ + CHANNEL_NOT_FOUND_EXCEPTION, /**< %Channel is not found */ - IPC_PROXY_METHOD_EXCEPTION, /**< %IPC proxy method is failed */ - IPC_STUB_METHOD_EXCEPTION, /**< %IPC stub method is failed */ - STUB_IS_ALREADY_RUNNING, /**< %Stub is already running */ - NO_STUB_FOUND, /**< %No such stub is running */ + IPC_PROXY_METHOD_EXCEPTION, /**< %IPC proxy method is failed */ + IPC_STUB_METHOD_EXCEPTION, /**< %IPC stub method is failed */ + STUB_IS_ALREADY_RUNNING, /**< %Stub is already running */ + NO_STUB_FOUND, /**< %No such stub is running */ NO_PROXY_FOUND, - NO_SUCH_PROXY_CONNECTED, /**< %proxy is not exist */ - NO_IPC_LISTENER_FOUND, /**< %No listener is registered */ - NO_IPC_EVENT_FOUND, /**< %Stub has no such event @n*/ + NO_SUCH_PROXY_CONNECTED, /**< %proxy is not exist */ + NO_IPC_LISTENER_FOUND, /**< %No listener is registered */ + NO_IPC_EVENT_FOUND, /**< %Stub has no such event @n*/ IPC_USER_DATA_ALREADY_EXIST, IPC_STUB_NO_USER_DATA_FOUND, IPC_ADD_LISTENER_DENIED, @@ -132,67 +130,65 @@ enum _Exceptions IPC_NO_AVAILABLE_ID, IPC_MSG_QUEUE_NOT_FOUND, DATA_BASE_ERROR_EXCEPTION, /**< Exceptions thrown from db engine. And it includes errors related to syntax or usage. */ - DATA_BASE_TOO_BIG_EXCEPTION, /**< String or BLOB exceeds size limit. */ + DATA_BASE_TOO_BIG_EXCEPTION, /**< String or BLOB exceeds size limit. */ DATA_BASE_BUSY_EXCEPTION, /**< The database file is locked. */ - DATA_BASE_END_OF_RESULT_SET, /**< Reached the end of result set. */ - DATA_BASE_NOT_CHANGED_EXCEPTION, /**< There was no changes on table after INSERT, UPDATE, DELETE. */ + DATA_BASE_END_OF_RESULT_SET, /**< Reached the end of result set. */ + DATA_BASE_NOT_CHANGED_EXCEPTION, /**< There was no changes on table after INSERT, UPDATE, DELETE. */ APP_IDALREADY_EXIST_, APP_IDIS_NOT_EXIST_, ENCODING_FAILED_EXCEPTION, DECODING_FAILED_EXCEPTION, - END_OF_BASE_EXCEPTION, // service exception - SERVICE_ALREADY_REGISTERED_EXCEPTION, /**< Service Already is registered */ - XML_PARSING_EXCEPTION, /**< %Xml parsing is fail. */ - SERVICE_NOT_REGISTERED_EXCEPTION, /**< %Service is not registered. */ - EVENT_SOURCE_NOT_REGISTERED_EXCEPTION, /**< %Event SourceID is not registered. */ - SERVER_EXCEPTION, /**< %Server side system error. */ - INVALID_PEER_CREDENTIAL_EXCEPTION, /**< %Peer Credential is invalid. */ - UNSUPPORTED_PROTOCOL_EXCEPTION, /**< %UnSupport protocol context. */ - UNSUPPORTED_ENCODING_EXCEPTION, /**< %UnSupport encoding. */ - DOM_EXCEPTION, /**< %DomException. */ - INVALID_MESSAGE_TYPE_EXCEPTION, /**< %Invalid message type Exception @n*/ - NETWORK_ABORT_EXCEPTION, /**< %Network abort Exception @n*/ - NETWORK_ALREADY_ABORTED_EXCEPTION, /**< %Network is already aborted @n*/ - NETWORK_ABORT_FAILED_EXCEPTION, /**< %network abort is fail @n*/ + SERVICE_ALREADY_REGISTERED_EXCEPTION, /**< Service Already is registered */ + XML_PARSING_EXCEPTION, /**< %Xml parsing is fail. */ + SERVICE_NOT_REGISTERED_EXCEPTION, /**< %Service is not registered. */ + EVENT_SOURCE_NOT_REGISTERED_EXCEPTION, /**< %Event SourceID is not registered. */ + SERVER_EXCEPTION, /**< %Server side system error. */ + INVALID_PEER_CREDENTIAL_EXCEPTION, /**< %Peer Credential is invalid. */ + UNSUPPORTED_PROTOCOL_EXCEPTION, /**< %UnSupport protocol context. */ + UNSUPPORTED_ENCODING_EXCEPTION, /**< %UnSupport encoding. */ + DOM_EXCEPTION, /**< %DomException. */ + INVALID_MESSAGE_TYPE_EXCEPTION, /**< %Invalid message type Exception @n*/ + NETWORK_ABORT_EXCEPTION, /**< %Network abort Exception @n*/ + NETWORK_ALREADY_ABORTED_EXCEPTION, /**< %Network is already aborted @n*/ + NETWORK_ABORT_FAILED_EXCEPTION, /**< %network abort is fail @n*/ END_OF_SERVICE_EXCEPTION, // group exception - GROUP_NOT_FOUND_EXCEPTION, /**< GROUP_ is not found */ - USER_NOT_FOUND_EXCEPTION, /**< %User is not found. */ - SERVICE_NOT_FOUND_EXCEPTION, /**< %Service is not found. */ - ATTRIBUTE_NOT_FOUND_EXCEPTION, /**< %Attribute is not found. */ - DUPLICATE_ATTRIBUTE_EXCEPTION, /**< %Attribute already exists. */ - ALREADY_JOINED_GROUP_EXCEPTION, /**< %Alread joined group. */ - NOT_JOINED_GROUP_EXCEPTION, /**< %Not a member of the group. */ - ALREADY_INVITED_EXCEPTION, /**< %The user is already invited. */ - INVITATION_NOT_FOUND_EXCEPTION, /**< %There is no invitation for the user.*/ - MAX_MEMBER_EXCEEDED_EXCEPTION, /**< %Maximum number of allowed members in this group has exceeded. */ - NOT_PERMITTED_GENDER_EXCEPTION, /**< %The gender constraint of this group. */ - CATEGORY_NOT_FOUND_EXCEPTION, /**< %Category is not found. */ - DUPLICATE_JOIN_REQUEST_EXCEPTION, /**< %The group already has the join request. */ - JOIN_PROHIBHITED_EXCEPTION, /**< %Joining this group is prohibited by the owner. (Expelled member). */ + GROUP_NOT_FOUND_EXCEPTION, /**< GROUP_ is not found */ + USER_NOT_FOUND_EXCEPTION, /**< %User is not found. */ + SERVICE_NOT_FOUND_EXCEPTION, /**< %Service is not found. */ + ATTRIBUTE_NOT_FOUND_EXCEPTION, /**< %Attribute is not found. */ + DUPLICATE_ATTRIBUTE_EXCEPTION, /**< %Attribute already exists. */ + ALREADY_JOINED_GROUP_EXCEPTION, /**< %Alread joined group. */ + NOT_JOINED_GROUP_EXCEPTION, /**< %Not a member of the group. */ + ALREADY_INVITED_EXCEPTION, /**< %The user is already invited. */ + INVITATION_NOT_FOUND_EXCEPTION, /**< %There is no invitation for the user.*/ + MAX_MEMBER_EXCEEDED_EXCEPTION, /**< %Maximum number of allowed members in this group has exceeded. */ + NOT_PERMITTED_GENDER_EXCEPTION, /**< %The gender constraint of this group. */ + CATEGORY_NOT_FOUND_EXCEPTION, /**< %Category is not found. */ + DUPLICATE_JOIN_REQUEST_EXCEPTION, /**< %The group already has the join request. */ + JOIN_PROHIBHITED_EXCEPTION, /**< %Joining this group is prohibited by the owner. (Expelled member). */ DUPLICATE_GROUP_NAME_EXCEPTION, - END_OF_GROUP_EXCEPTION, // security exception - SIGN_FAILED_EXCEPTION, /**< %Generation signature failed. */ - INVALID_SIGNATURE_EXCEPTION, /**< %Signature is not valid */ - VERSION_NOT_MATCH_EXCEPTION, /**< %Version is not matched */ + SIGN_FAILED_EXCEPTION, /**< %Generation signature failed. */ + INVALID_SIGNATURE_EXCEPTION, /**< %Signature is not valid */ + VERSION_NOT_MATCH_EXCEPTION, /**< %Version is not matched */ - AMBIGOUS_CREDENTIAL_EXCEPTION, /**< %Credential is not unique. */ - CREDENTIAL_FOUND_EXCEPTION, /**< %Credential is not found. */ + AMBIGOUS_CREDENTIAL_EXCEPTION, /**< %Credential is not unique. */ + CREDENTIAL_FOUND_EXCEPTION, /**< %Credential is not found. */ - ALREADY_USER_REGISTERED_EXCEPTION, /**< %Already user registered to server @n*/ - USER_NOT_REGISTERED_EXCEPTION, /**< %The user didn't register to server @n*/ - ALREADY_USER_AUTHENTICATED_EXCEPTION, /**< %Already user AUTHENTICATED_ to server @n*/ - USER_NOT_AUTHENTICATED_EXCEPTION, /**< %The user didn't Authenticate to server @n*/ - USER_IDNOT_MATCHED_EXCEPTION, /**< %The user ID in the device and loginID is not matched @*/ + ALREADY_USER_REGISTERED_EXCEPTION, /**< %Already user registered to server @n*/ + USER_NOT_REGISTERED_EXCEPTION, /**< %The user didn't register to server @n*/ + ALREADY_USER_AUTHENTICATED_EXCEPTION, /**< %Already user AUTHENTICATED_ to server @n*/ + USER_NOT_AUTHENTICATED_EXCEPTION, /**< %The user didn't Authenticate to server @n*/ + USER_IDNOT_MATCHED_EXCEPTION, /**< %The user ID in the device and loginID is not matched @*/ ENCRYPT_FAILED_EXCEPTION, DECRYPT_FAILED_EXCEPTION, @@ -206,45 +202,45 @@ enum _Exceptions END_OF_SECURITY_EXCEPTION, // storage exception - PATH_NOT_FOUND_EXCEPTION, /**< Path is not found.*/ - PATH_ALREADY_EXIST_EXCEPTION, /**< %Path already exists. @n*/ + PATH_NOT_FOUND_EXCEPTION, /**< Path is not found.*/ + PATH_ALREADY_EXIST_EXCEPTION, /**< %Path already exists. @n*/ END_OF_STORAGE_EXCEPTION, // context exception - CONTEXT_MODEL_COUNT_MAX_EXCEPTION, /**< Context model count is exceeded.*/ - DATA_NOT_FOUND_EXCEPTION, /**< %Data is not found. */ - SQLEXCEPTION, /**< %Database access error */ - INVALID_SENSOR_CIDEXCEPTION, /**< %Sensor CID in *.xsd file is invalid. */ + CONTEXT_MODEL_COUNT_MAX_EXCEPTION, /**< Context model count is exceeded.*/ + DATA_NOT_FOUND_EXCEPTION, /**< %Data is not found. */ + SQLEXCEPTION, /**< %Database access error */ + INVALID_SENSOR_CIDEXCEPTION, /**< %Sensor CID in *.xsd file is invalid. */ OBJECT_DATA_NOT_FOUND_EXCEPTION, /**< %Object is not found. */ - ILLEGAL_CONDITION_OBJECT_EXCEPTION, /**< %Context condition's object is invalid. */ - ILLEGAL_CONDITION_CHANNEL_EXCEPTION, /**< %Context condition's channel is invalid. */ - INVALID_MODEL_DEFINITION_EXCEPTION, /**< %Definition of context model is invalid. */ - NO_SUCH_TABLE_EXCEPTION, /**< %Table name is not found */ - SERVICE_UNAVAILABLE_EXCEPTION, /**< %Server is not working. */ + ILLEGAL_CONDITION_OBJECT_EXCEPTION, /**< %Context condition's object is invalid. */ + ILLEGAL_CONDITION_CHANNEL_EXCEPTION, /**< %Context condition's channel is invalid. */ + INVALID_MODEL_DEFINITION_EXCEPTION, /**< %Definition of context model is invalid. */ + NO_SUCH_TABLE_EXCEPTION, /**< %Table name is not found */ + SERVICE_UNAVAILABLE_EXCEPTION, /**< %Server is not working. */ // context query processor exception CONTEXT_STORAGE_NOT_FOUND_EXCEPTION, /**< Context storage is not found. */ - CONTEXT_STORAGE_EXIST_EXCEPTION, /**< %Context storage exists. */ + CONTEXT_STORAGE_EXIST_EXCEPTION, /**< %Context storage exists. */ CONTEXT_TYPE_NOT_FOUND_EXCEPTION, /**< %Context type described on CQL is not found in context storage. */ CONTEXT_STORAGE_NOT_OPENED_EXCEPTION, /**< %Context storage is not opened. */ CONTEXT_STORAGE_NOT_CLOSED_EXCEPTION, /**< %Context storage is not closed. */ CONTEXT_ELEMENT_NOT_FOUND_EXCEPTION, /**< %Context element described on CQL is not found in context storage. */ - CURSOR_NOT_DELETED_EXCEPTION, /**< %Cursors ofa context storage is still being used. */ - - CAN_NOT_LAUNCH_SERVER_EXCEPTION, /**<%Failed to launch server instance. */ - CAN_NOT_ALLOC_RESOURCE_EXCEPTION, /**<%Failed to allocate system resources such as mutex, thread, file, timer and so on. */ - TOO_MANY_ON_GOING_SESSIONS_EXCEPTION, /**< %Too many sessions are present. */ - CAN_NOT_DECODE_EXCEPTION, /**< %Can not proceed any more in parsing string or decoding data. */ - INVALID_ENCODE_TYPE_EXCEPTION, /**< %Undefined or unknown type was found during encode/decode. */ - NEED_CO_PROCESSOR_EXCEPTION, /**< %When initialization of co-processor is missed, let the user launch missed server instance according to module dependency. */ - CO_PROCESSING_EXCEPTION, /**< %Caught exception after execution of subsystem or co-processing module. */ - CAUGHT_BROKEN_INTERNALS_EXCEPTION, /**< %Caught inconsistent state of current system or availability of malfunction. */ - CAUGHT_INCOMPLETE_CODE_EXCEPTION, /**< %Caught unexpected exception from sub-system or co-processing module/library. */ - NOT_CQPENABLED_DEVICE_NAME_EXCEPTION, /**< %Given device is not a CQP enabled, or temporarily fall in blacklist due to current network connectivity or machine failure. */ - CAN_NOT_FIND_ENTITY_EXCEPTION, /**< %Can notnot find entity in container. */ - EXCEED_MAXIMUM_BUFFER_LIMIT_EXCEPTION, /**< %Exceeded maximum buffer limitation during encoding or decoding raw data. */ - REMOTE_EXECUTE_QUERY_EXCEPTION, /**< %Common exception which represents for multiple remote exceptions came from remote devices during executequery()/executequery2() family In this case, all the remote devices delivered exception */ + CURSOR_NOT_DELETED_EXCEPTION, /**< %Cursors ofa context storage is still being used. */ + + CAN_NOT_LAUNCH_SERVER_EXCEPTION, /**< %Failed to launch server instance. */ + CAN_NOT_ALLOC_RESOURCE_EXCEPTION, /**< %Failed to allocate system resources such as mutex, thread, file, timer and so on. */ + TOO_MANY_ON_GOING_SESSIONS_EXCEPTION, /**< %Too many sessions are present. */ + CAN_NOT_DECODE_EXCEPTION, /**< %Can not proceed any more in parsing string or decoding data. */ + INVALID_ENCODE_TYPE_EXCEPTION, /**< %Undefined or unknown type was found during encode/decode. */ + NEED_CO_PROCESSOR_EXCEPTION, /**< %When initialization of co-processor is missed, let the user launch missed server instance according to module dependency. */ + CO_PROCESSING_EXCEPTION, /**< %Caught exception after execution of subsystem or co-processing module. */ + CAUGHT_BROKEN_INTERNALS_EXCEPTION, /**< %Caught inconsistent state of current system or availability of malfunction. */ + CAUGHT_INCOMPLETE_CODE_EXCEPTION, /**< %Caught unexpected exception from sub-system or co-processing module/library. */ + NOT_CQPENABLED_DEVICE_NAME_EXCEPTION, /**< %Given device is not a CQP enabled, or temporarily fall in blacklist due to current network connectivity or machine failure. */ + CAN_NOT_FIND_ENTITY_EXCEPTION, /**< %Can notnot find entity in container. */ + EXCEED_MAXIMUM_BUFFER_LIMIT_EXCEPTION, /**< %Exceeded maximum buffer limitation during encoding or decoding raw data. */ + REMOTE_EXECUTE_QUERY_EXCEPTION, /**< %Common exception which represents for multiple remote exceptions came from remote devices during executequery()/executequery2() family In this case, all the remote devices delivered exception */ INVALID_HANDLE_EXCEPTION, SESSION_ALREADY_IN_PROGRESS_EXCEPTION, @@ -266,31 +262,31 @@ enum _Exceptions OPENED_HANDLE_EXIST_EXCEPTION, // context importer exception - DBCONNECTION_FAILED_EXCEPTION, /**< %Initializing DB CONNECTION is failed */ - SQLEXECUTION_FAILED_EXCEPTION, /**< %executing SQL query is failed @n*/ + DBCONNECTION_FAILED_EXCEPTION, /**< %Initializing DB CONNECTION is failed */ + SQLEXECUTION_FAILED_EXCEPTION, /**< %executing SQL query is failed @n */ //Rfid exceptions - TAG_NOT_FOUND_EXCEPTION, /**< Tag was not found*/ - TAG_LOGIN_FAILED_EXCEPTION, /**< %Login to tag failed */ - TAG_ERROR_EXCEPTION, /**<%Tag returned error */ - NO_DATA_ON_TAG_EXCEPTION, /**<%Tag contains no data */ - INCOMPATIBLE_TAG_EXCEPTION, /**<%Tag is not matrix compatible */ - TAG_LOCKED_EXCEPTION, /**<%Tag is Locked @n*/ + TAG_NOT_FOUND_EXCEPTION, /**< Tag was not found*/ + TAG_LOGIN_FAILED_EXCEPTION, /**< %Login to tag failed */ + TAG_ERROR_EXCEPTION, /**< %Tag returned error */ + NO_DATA_ON_TAG_EXCEPTION, /**< %Tag contains no data */ + INCOMPATIBLE_TAG_EXCEPTION, /**< %Tag is not matrix compatible */ + TAG_LOCKED_EXCEPTION, /**< %Tag is Locked @n*/ END_OF_CONTEXT_EXCEPTION, // SECOND_LIFE_EXCEPTION_GROUP - NOT_LOGGED_IN_EXCEPTION, /**< Not logged in the second life server */ - BALANCE_NOT_RECIEVED_EXCEPTION, /** +template< typename T > class _ObjectManagerT; -template +template< typename T > class _HandleT : public Tizen::Base::Object { @@ -44,7 +43,8 @@ public: * @since 2.0 */ _HandleT(void) - : __handle(0), __pObjectManagerImpl(null) + : __handle(0) + , __pObjectManagerImpl(null) { } @@ -73,7 +73,7 @@ public: * Checks whether the handle is valid or not. * * @since 2.0 - * return @c true if the handle is valid, @n else @c false + * return @c true if the handle is valid, @n else @c false */ bool IsValid(void) const { @@ -89,11 +89,11 @@ public: * Get the signed @c int equivalent of the current instance. * * @since 2.0 - * @return Signed @c int equivalent of the current instance + * @return Signed @c int equivalent of the current instance */ int ToInt(void) const { - return (int)__handle; + return (int) __handle; } /** @@ -104,7 +104,7 @@ public: * else @c false * @param[in] rhs An instance of %_HandleT */ - inline bool operator ==(const _HandleT & rhs) const + inline bool operator ==(const _HandleT< T >& rhs) const { return __handle == rhs.__handle; } @@ -118,18 +118,18 @@ public: * @param[in] rhs An instance of %_HandleT * */ - inline bool operator !=(const _HandleT & rhs) const + inline bool operator !=(const _HandleT< T >& rhs) const { return !(*this == rhs); } - _HandleT(const _HandleT& handle) + _HandleT(const _HandleT< T >& handle) { this->__handle = handle.__handle; this->__pObjectManagerImpl = handle.__pObjectManagerImpl; } - _HandleT& operator = (const _HandleT& handle) + _HandleT< T >& operator =(const _HandleT& handle) { if (this == &handle) { @@ -153,9 +153,7 @@ private: unsigned int __handle; _ObjectManagerImpl* __pObjectManagerImpl; - friend class _ObjectManagerT ; + friend class _ObjectManagerT< T >; }; // _HandleT - }} // Tizen::Base - -#endif // _FBASE_RT_INTERNAL_HANDLE_TEMPLATE_H_ +#endif // _FBASE_RT_INTERNAL_HANDLE_TEMPLATE_H_ \ No newline at end of file diff --git a/src/base/inc/FBase_LocalizedNumParser.h b/src/base/inc/FBase_LocalizedNumParser.h index 3dd5654..9139bde 100644 --- a/src/base/inc/FBase_LocalizedNumParser.h +++ b/src/base/inc/FBase_LocalizedNumParser.h @@ -20,7 +20,6 @@ * * This header file contains the declarations of the %_LocalizedNumParser class. */ - #ifndef _FBASE_INTERNAL_LOCALIZED_NUM_PARSER_H_ #define _FBASE_INTERNAL_LOCALIZED_NUM_PARSER_H_ @@ -160,10 +159,8 @@ private: // _LocalizedNumParser& operator =(const _LocalizedNumParser& rhs); - static const int FLOAT_LENGTH_MAX = 7 + 38 + 3; // significant decimal digits + exponent + extra characters - static const int DBL_MAX_LENGTH = 17 + 308 + 3; // significant decimal digits + exponent + extra characters + static const int FLOAT_LENGTH_MAX = 7 + 38 + 3; // significant decimal digits + exponent + extra characters + static const int DBL_MAX_LENGTH = 17 + 308 + 3; // significant decimal digits + exponent + extra characters }; - -}} // Tizen::Base - -#endif // _FBASE_INTERNAL_LOCALIZED_NUM_PARSER_H_ \ No newline at end of file +}} // Tizen::Base +#endif // _FBASE_INTERNAL_LOCALIZED_NUM_PARSER_H_ \ No newline at end of file diff --git a/src/base/inc/FBase_Log.h b/src/base/inc/FBase_Log.h index a437bf4..8292f2e 100644 --- a/src/base/inc/FBase_Log.h +++ b/src/base/inc/FBase_Log.h @@ -18,7 +18,6 @@ * @file FBase_Log.h * @brief This file is internal header for Log. */ - #ifndef _FBASE_INTERNAL_LOG_H_ #define _FBASE_INTERNAL_LOG_H_ @@ -94,6 +93,4 @@ void __InitializePlatformModule(const Tizen::Io::Registry& reg); #ifdef __cplusplus } #endif // __cplusplus - - -#endif // _FBASE_INTERNAL_LOG_H_ +#endif // _FBASE_INTERNAL_LOG_H_ \ No newline at end of file diff --git a/src/base/inc/FBase_NativeError.h b/src/base/inc/FBase_NativeError.h index c954003..0357c30 100644 --- a/src/base/inc/FBase_NativeError.h +++ b/src/base/inc/FBase_NativeError.h @@ -18,13 +18,11 @@ * @file FBaseNativeError.h * @brief This is the header file for handling Native errors. */ - #ifndef _FBASE_NATIVE_ERROR_H_ #define _FBASE_NATIVE_ERROR_H_ #include - #define __FUNCX__ __PRETTY_FUNCTION__ #ifdef _OSP_DEBUG_ @@ -119,6 +117,4 @@ public: static result ConvertNativeSqliteErrorToDetailResult(int err); }; // _NativeError - -#endif //_FBASE_NATIVE_ERROR_H_ - +#endif //_FBASE_NATIVE_ERROR_H_ \ No newline at end of file diff --git a/src/base/inc/FBase_ObjectManagerImpl.h b/src/base/inc/FBase_ObjectManagerImpl.h old mode 100755 new mode 100644 index 9cb2b4d..8806cc8 --- a/src/base/inc/FBase_ObjectManagerImpl.h +++ b/src/base/inc/FBase_ObjectManagerImpl.h @@ -20,8 +20,6 @@ * * This file contains the declarations of the %_ObjectManagerImpl class. */ - - #ifndef _FBASE_INTERNAL_OBJECT_MANAGER_IMPL_H_ #define _FBASE_INTERNAL_OBJECT_MANAGER_IMPL_H_ @@ -30,7 +28,6 @@ #include #include - namespace Tizen { namespace Base { @@ -220,7 +217,6 @@ public: return pObject; } - /** * Gets an object specified by the handle. * @@ -277,7 +273,6 @@ public: return const_cast(pObj); } - /** * Gets the number of objects in the object manager. * @@ -342,7 +337,6 @@ private: void SetElementAt(int index) { - } _HandleElement GetElementAt(int index) @@ -412,7 +406,5 @@ private: Tizen::Base::Runtime::Mutex* __pLock; }; - }} // Tizen::Base - -#endif // _FBASE_INTERNAL_OBJECT_MANAGER_IMPL_H_ +#endif // _FBASE_INTERNAL_OBJECT_MANAGER_IMPL_H_ \ No newline at end of file diff --git a/src/base/inc/FBase_ObjectManagerT.h b/src/base/inc/FBase_ObjectManagerT.h index 3010f89..e039dd1 100644 --- a/src/base/inc/FBase_ObjectManagerT.h +++ b/src/base/inc/FBase_ObjectManagerT.h @@ -20,8 +20,6 @@ * * This file contains the declarations of the %_ObjectManagerT class. */ - - #ifndef _FBASE_INTERNAL_OBJECT_MANAGER_TEMPLATE_H_ #define _FBASE_INTERNAL_OBJECT_MANAGER_TEMPLATE_H_ @@ -30,8 +28,6 @@ #include "FBase_HandleT.h" #include "FBase_ObjectManagerImpl.h" - - namespace Tizen { namespace Base { @@ -76,7 +72,7 @@ namespace Tizen { namespace Base * } * @endcode */ -template +template< typename T > class _ObjectManagerT : Tizen::Base::Object { @@ -110,12 +106,12 @@ public: * @exception E_SUCCESS The method was successful. * @see Unregister() */ - _HandleT Register(const T& object) + _HandleT< T > Register(const T& object) { - _HandleT handle; + _HandleT< T > handle; unsigned int rawHandle = 0; - rawHandle = __pImpl->Register((void*)&object); + rawHandle = __pImpl->Register((void*) &object); handle.Initialize(rawHandle, __pImpl); return handle; @@ -131,7 +127,7 @@ public: * @exception E_OBJ_NOT_FOUND The specified handle was not found. * @see Register() */ - T* Unregister(const _HandleT & handle) + T* Unregister(const _HandleT< T >& handle) { void* pObject = __pImpl->Unregister(handle.__handle); @@ -145,10 +141,10 @@ public: * @return Handle specifed by a signed @c integer * @param[in] value A signed @c integer value; */ - _HandleT GetHandle(int value) + _HandleT< T > GetHandle(int value) { - _HandleT handle; - handle.Initialize((unsigned int)value, __pImpl); + _HandleT< T > handle; + handle.Initialize((unsigned int) value, __pImpl); return handle; } @@ -162,7 +158,7 @@ public: * @exception E_SUCCESS The method was successful. * @exception E_OBJ_NOT_FOUND The specified handle was not found. */ - T* GetObject(const _HandleT & handle) + T* GetObject(const _HandleT< T >& handle) { void* pObject = null; @@ -174,7 +170,6 @@ public: return (T*)pObject; } - /** * Gets an object specified by the handle. * @@ -184,7 +179,7 @@ public: * @exception E_SUCCESS The method was successful. * @exception E_OBJ_NOT_FOUND The specified handle was not found. */ - const T* GetObject(const _HandleT & handle) const + const T* GetObject(const _HandleT< T >& handle) const { if (handle.IsNull()) return null; @@ -194,7 +189,6 @@ public: return (const T*)pObject; } - /** * Gets the number of objects in the object manager. * @@ -209,7 +203,5 @@ public: private: _ObjectManagerImpl* __pImpl; }; // _ObjectManagerT - }} // Tizen::Base - -#endif // _FBASE_INTERNAL_OBJECT_MANAGER_TEMPLATE_H_ +#endif // _FBASE_INTERNAL_OBJECT_MANAGER_TEMPLATE_H_ \ No newline at end of file diff --git a/src/base/inc/FBase_String.h b/src/base/inc/FBase_String.h index 530968f..3012767 100644 --- a/src/base/inc/FBase_String.h +++ b/src/base/inc/FBase_String.h @@ -18,7 +18,6 @@ * @file FBase_String.h * @brief This is the header file for handling atomic operations. */ - #ifndef _FBASE_INTERNAL_STRING_H_ #define _FBASE_INTERNAL_STRING_H_ @@ -32,7 +31,8 @@ namespace _String * * @since 2.1 */ -inline int AtomicAdd(volatile int* pRefCount, int value) +inline int +AtomicAdd(volatile int* pRefCount, int value) { #if defined(__arm__) register int result; @@ -57,7 +57,8 @@ inline int AtomicAdd(volatile int* pRefCount, int value) * * @since 2.1 */ -inline int AtomicInc(volatile int* pRefCount) +inline int +AtomicInc(volatile int* pRefCount) { return AtomicAdd(pRefCount, 1); } @@ -67,12 +68,11 @@ inline int AtomicInc(volatile int* pRefCount) * * @since 2.1 */ -inline int AtomicDec(volatile int* pRefCount) +inline int +AtomicDec(volatile int* pRefCount) { return AtomicAdd(pRefCount, -1); } - -}// _String -}} // Tizen::Base - -#endif // _FBASE_INTERNAL_STRING_H_ \ No newline at end of file +} // _String +}} // Tizen::Base +#endif // _FBASE_INTERNAL_STRING_H_ \ No newline at end of file diff --git a/src/base/inc/FBase_StringConverter.h b/src/base/inc/FBase_StringConverter.h index f08c26e..c812a4f 100644 --- a/src/base/inc/FBase_StringConverter.h +++ b/src/base/inc/FBase_StringConverter.h @@ -18,17 +18,14 @@ * @file FBase_StringConverter.h * @brief This is the header file for the _StringConverter class. */ - #ifndef _FBASE_STRING_CONVERTER_H_ #define _FBASE_STRING_CONVERTER_H_ #include - namespace Tizen { namespace Base { - class _OSP_EXPORT_ _StringConverter { public: @@ -49,7 +46,5 @@ public: static char* CopyToCharArrayN(const wchar_t* pValue); }; // _StringConverter - }} // Tizen::Base - -#endif // _FBASE_STRING_CONVERTER_H_ +#endif // _FBASE_STRING_CONVERTER_H_ \ No newline at end of file -- 2.7.4