Tizen 2.1 base
[platform/framework/native/telephony.git] / inc / FTelTypes.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17 /**
18  * @file    FTelTypes.h
19  * @brief   This is the header file for the enumerations of the Tizen::Telephony namespace.
20  *
21  * This header file contains the definitions of the enumerations of the Tizen::Telephony namespace.
22  */
23 #ifndef _FTEL_ENUM_H_
24 #define _FTEL_ENUM_H_
25
26 namespace Tizen { namespace Telephony
27 {
28 /**
29  * @enum    CallType
30  *
31  * Defines the type of the current call.
32  *
33  * @since   2.0
34  */
35 enum CallType
36 {
37         TYPE_UNDEFINED_CALL = -1,   /**< No defined type */
38         TYPE_VOICE_CALL = 0,        /**< The voice call type */
39         TYPE_VIDEO_CALL             /**< The video call type */
40 };
41
42 /**
43  * @enum    CallStatus
44  *
45  * Defines the current status of calls.
46  *
47  * @since   2.0
48  */
49 enum CallStatus
50 {
51         CALL_STATUS_UNDEFINED = -1, /**< No defined type */
52         CALL_STATUS_IDLE = 0,       /**< No call is in progress */
53         CALL_STATUS_ACTIVE,         /**< @if OSPDEPREC @deprecated This enum value is deprecated because an active status is divided into three, that is, communicating, ringing, dialing, and holding @endif */
54         CALL_STATUS_COMMUNICATING,  /**< Voice or video calls are in progress */
55         CALL_STATUS_RINGING,        /**< An incoming voice or video call */
56         CALL_STATUS_DIALING,        /**< An outgoing voice or video call */
57         CALL_STATUS_HOLDING         /**< A call on holding status */
58 };
59
60 }} // Tizen::Telephony
61 #endif // _FTEL_ENUM_H_