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 FBaseRt_Process.h
20 * @brief This is the header file for the %_Process class.
22 * This file contains the declarations of the %_Process class.
25 #ifndef _FBASE_RT_INTERNAL_PROCESS_H_
26 #define _FBASE_RT_INTERNAL_PROCESS_H_
29 #include <FOspConfig.h>
31 namespace Tizen { namespace Base { namespace Runtime
35 * The constant for success termination code.
39 static const int EXIT_CODE_SUCCESS = 0;
42 * The constant for failure termination code.
46 static const int EXIT_CODE_FAILURE = 1;
50 * @brief This class provides method for managing process.
53 class _OSP_EXPORT_ _Process
57 * Terminates current process.
61 * @param[in] exitCode The exit code
63 static void Exit(int exitCode);
67 * This is the default constructor for this class.
74 * This is the destructor for this class.
82 } } } // Tizen::Base::Runtime
84 #endif // _FBASE_RT_INTERNAL_PROCESS_H_