UcmGProt.h 21.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
 *
 * Filename:
 * ---------
 *  UCMGProt.h
 *
 * Project:
 * -------- 
 *  MAUI
 *
 * Description:
 * ------------
 *  UCM 3.0 UCM App's external interfaces
 *
 * Author:
 * -------
 * -------
 *
 *============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *------------------------------------------------------------------------------
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *
 * removed!
 *
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/
#ifndef UCM_GPROT_H
#define UCM_GPROT_H

#include "MMI_features.h"
#ifdef __MMI_UCM__

/* Include files---------------------------------------------------------------------------- */
#ifndef _CUSTOM_EVENTS_NOTIFY_H
#include "custom_events_notify.h"
#endif
#include "UcmSrvGProt.h"

#include "mmi_res_range_def.h"
#include "MMIDataType.h"
#include "mmi_frm_events_gprot.h"
#include "wgui_categories_list.h"
#include "GlobalConstants.h"

/* ENUM------------------------------------------------------------------------------------- */
/* Event id definition */
typedef enum
{
    EVT_ID_UCM_CLOSE_GRP_QUERY = UCM_BASE + 1, 
    MMI_UCM_EVENT_END_OF_ENUM
} mmi_ucm_event_enum;


/* define event structure */ 
typedef struct {
    MMI_EVT_PARAM_HEADER
} mmi_evt_mmi_ucm_close_grp_query_struct; 


/* Result code enum , just a wrapper for URI agent app which use this enum before ucm revise */
typedef enum
{
    MMI_UCM_RESULT_OK = SRV_UCM_RESULT_OK, /* OK */
    MMI_UCM_RESULT_USER_ABORT = SRV_UCM_RESULT_USER_ABORT, /* User abort */
    MMI_UCM_RESULT_INVALID_NUMBER = SRV_UCM_RESULT_INVALID_NUMBER, /* Invalid number */
    MMI_UCM_RESULT_EMPTY_NUMBER = SRV_UCM_RESULT_EMPTY_NUMBER, /* Empty number */
    MMI_UCM_RESULT_CALLED_PARTY_BUSY = SRV_UCM_RESULT_CALLED_PARTY_BUSY, /* Called party busy */
    MMI_UCM_RESULT_NETWORK_NOT_AVAILABLE = SRV_UCM_RESULT_NETWORK_NOT_AVAILABLE, /* Network not available */
    MMI_UCM_RESULT_CALLED_PARTY_NOT_ANSWERED = SRV_UCM_RESULT_CALLED_PARTY_NOT_ANSWERED, /* Called party not answered */
    MMI_UCM_RESULT_UCM_BUSY = SRV_UCM_RESULT_UCM_BUSY, /* Busy */
    MMI_UCM_RESULT_CANCEL = SRV_UCM_RESULT_CANCEL, /* Cancel */
    MMI_UCM_RESULT_FLIGHT_MODE_PROHIBIT = SRV_UCM_RESULT_FLIGHT_MODE_PROHIBIT, /* Flight mode prohibit */
    MMI_UCM_RESULT_PREFERRED_MODE_PROHIBIT = SRV_UCM_RESULT_PREFERRED_MODE_PROHIBIT, /* Preferred mode prohibit */
    MMI_UCM_RESULT_SOS_CALL_EXISTS = SRV_UCM_RESULT_SOS_CALL_EXISTS, /* Exist SOS call */
    MMI_UCM_RESULT_SOS_NUMBER_ONLY = SRV_UCM_RESULT_SOS_NUMBER_ONLY, /* SOS number only */
    MMI_UCM_RESULT_NO_ACTIVE_VOICE_CALL = SRV_UCM_RESULT_NO_ACTIVE_CALL, /* No active voice call */
    MMI_UCM_RESULT_UNSPECIFIED_ERROR = SRV_UCM_RESULT_UNSPECIFIED_ERROR, /* Unspecified error */
    MMI_UCM_RESULT_END_OF_ENUM /* end of the enum */
} mmi_ucm_result_enum;


/* Old call type enum */
typedef enum
{
    MMI_UCM_VOICE_CALL_TYPE = SRV_UCM_VOICE_CALL_TYPE, /* SIM1 voice call type */
    MMI_UCM_VOICE_CALL_TYPE_SIM2 = SRV_UCM_VOICE_CALL_TYPE_SIM2, /* SIM2 voice call type */
    MMI_UCM_DATA_CALL_TYPE = SRV_UCM_DATA_CALL_TYPE, /* SIM1 data call type */
    MMI_UCM_DATA_CALL_TYPE_SIM2 = SRV_UCM_DATA_CALL_TYPE_SIM2, /* SIM2 data call type */
    MMI_UCM_CSD_CALL_TYPE = SRV_UCM_CSD_CALL_TYPE, /* SIM1 csd call type */
    MMI_UCM_CSD_CALL_TYPE_SIM2S = SRV_UCM_CSD_CALL_TYPE_SIM2, /* SIM2 csd call type */
    MMI_UCM_VOIP_CALL_TYPE = SRV_UCM_VOIP_CALL_TYPE, /* VoIP call type */
    MMI_UCM_VIDEO_CALL_TYPE = SRV_UCM_VIDEO_CALL_TYPE, /* Video call type*/
    MMI_UCM_CALL_TYPE_END_OF_ENUM /* End of the enum */
} mmi_ucm_call_type_enum;

#define MMI_UCM_SIM1_CALL_TYPE_ALL     SRV_UCM_SIM1_CALL_TYPE_ALL
#define MMI_UCM_SIM2_CALL_TYPE_ALL     SRV_UCM_SIM2_CALL_TYPE_ALL
#define MMI_UCM_VOICE_CALL_TYPE_ALL    SRV_UCM_VOICE_CALL_TYPE_ALL
#define MMI_UCM_DATA_CALL_TYPE_ALL     SRV_UCM_DATA_CALL_TYPE_ALL
#define MMI_UCM_CSD_CALL_TYPE_ALL      SRV_UCM_CSD_CALL_TYPE_ALL
#define MMI_UCM_CALL_TYPE_ALL          SRV_UCM_CALL_TYPE_ALL
#define MMI_UCM_CALL_TYPE_NO_CSD       SRV_UCM_CALL_TYPE_NO_CSD
#define MMI_UCM_CALL_TYPE_NO_DATA_CSD  SRV_UCM_CALL_TYPE_NO_DATA_CSD
#define MMI_UCM_CALL_TYPE_DATA_CSD_ALL SRV_UCM_CALL_TYPE_DATA_CSD_ALL


/* EVENT------------------------------------------------------------------------------------- */
typedef struct
{
	MMI_EVT_PARAM_HEADER
    srv_ucm_result_enum  result; /*make action's result. SRV_UCM_RESULT_CANCEL means user presses back or the screen is deleted without making call.  SRV_UCM_RESULT_OK means call is made successfully. */ 
    void *make_call_user_data; /*bypass user data back to caller*/
}mmi_evt_ucm_after_make_call_struct;


/* STRUCT------------------------------------------------------------------------------------- */
typedef struct
{
    srv_ucm_result_enum result; /*make action's result. SRV_UCM_RESULT_CANCEL means user presses back or the screen is deleted without making call.  SRV_UCM_RESULT_OK means call is made successfully. */ 
    void * user_data; /*bypass user data back to caller*/
} mmi_ucm_after_make_call_cb_struct;


/* Can use event mechanism for notify make call result*/
/* typedef mmi_ret (*mmi_ucm_after_make_call_callback) (mmi_evt_ucm_after_make_call_struct *result_evt); */


typedef void (*mmi_ucm_after_make_call_callback) (mmi_ucm_after_make_call_cb_struct* make_call_cb_para);


/* Make call advanced parameter struct */
typedef struct
{
    srv_ucm_call_type_enum highlight_dial_type; /* Default highlight dial type, currently only for triple/quad sim project */
    srv_ucm_module_origin_enum module_id; /* Module id, only for special app, ex. SAT. common make call can use SRV_UCM_MODULE_ORIGIN_COMMON */
    MMI_BOOL is_ip_dial; /* IP number dial flag */ 
    mmi_ucm_after_make_call_callback after_make_call_callback;/* callback function pointer. This cb will be called in the following cases: 1. succeed to make call 2. fail to make call 3.user selects back */
    void* after_callback_user_data; /* data pointer for make_call_callback, caller can bypass needed info by using this argv */
    void *phb_data; /* Bypass phonebook data for call service to query caller info */
} mmi_ucm_advanced_make_call_para_struct;


/* Make call parameter struct */
typedef struct
{
    srv_ucm_call_type_enum dial_type; /* the call types which caller wants to dial, can bitwise. but data call and CSD call is not allowed. if caller does not want to specify call type, can use SRV_UCM_CALL_TYPE_ALL. */
    U16* ucs2_num_uri; /* the dial number, SRV_UCM_MAX_NUM_URI_LEN + 1 , UCS2 number uri with null termination, this input parameter will be copied to another buffer, it won't be modified */
    mmi_ucm_advanced_make_call_para_struct adv_para; /* make call advanced parameter. for advanced use */
} mmi_ucm_make_call_para_struct;


/* DEFINE------------------------------------------------------------------------------------ */
#define MMI_UCM_ERR_IS_BG_CALL              (-600)

/* API-------------------------------------------------------------------------------------*/

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_init
 * DESCRIPTION
 *  Initialize UCM application
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_init(void);


/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_end_key
 * DESCRIPTION
 *  End key behavior function, FW will call this function when there is any call.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_end_key(void);


/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_get_marker_scrn_id
 * DESCRIPTION
 *  Function to get cm marker screen id
 * PARAMETERS
 *  void
 * RETURNS
 *  Maker screen id.
 *****************************************************************************/
extern U16 mmi_ucm_get_marker_scrn_id(void);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_get_intermediate_marker_scrn_id
 * DESCRIPTION
 *  Function to get ntermediate marker screen id
 * PARAMETERS
 *  U16
 * RETURNS
 *  Intermediate marker screen id.
 *****************************************************************************/
extern U16 mmi_ucm_get_intermediate_marker_scrn_id(void);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_entry_error_message
 * DESCRIPTION
 *  Error message API for applications which operations are not allowed during in-call
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_entry_error_message(void);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_get_error_info
 * DESCRIPTION
 *  Function to get the error information includes popup type and string
 * PARAMETERS
 *  error_result:   [IN]    error result type
 *  popup_type:     [OUT]   get the error popup type
 * RETURNS
 *  Get the error popup string id.
 *****************************************************************************/
extern MMI_STR_ID mmi_ucm_get_error_info(S32 error_result, mmi_event_notify_enum* popup_type);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_init_call_para
 * DESCRIPTION
 * initialize make call parameter. The default value is for common use 
 * PARAMETERS
 *  make_call_para:            [IN]      Make call parameter.
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_init_call_para(mmi_ucm_make_call_para_struct *make_call_para);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_init_call_para_for_sendkey
 * DESCRIPTION
 * initialize make call parameter for sendkey triggered behaviors. 
 * The default value of dial type will be the type which is decided when pressing send key 
 * PARAMETERS
 *  make_call_para:            [IN]      Make call parameter.
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_init_call_para_for_sendkey(mmi_ucm_make_call_para_struct *make_call_para);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_call_launch
 * DESCRIPTION
 *  Dial call api
 *  Dial_type is not allowed to be bitwised,
 *  If disallow to make call, will popup error message
 *  Before filling in make_call_para structure, caller can use mmi_ucm_init_call_para or mmi_ucm_init_call_para_for_sendkey
 *  to init structure first, and then fill in specific parameters as required.
 * PARAMETERS
 *  caller_gid:                [IN]      caller screen group id. before group screen mechanism is ready, fill 0 always
 *  make_call_para:            [IN]      Make call parameter.
 * RETURNS
 *  Return ucm app group screen id, before group screen mechanism is ready, return 0 always
 *****************************************************************************/
extern U16 mmi_ucm_call_launch(U16 caller_gid, mmi_ucm_make_call_para_struct *make_call_para);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_reconstruct
 * DESCRIPTION
 *  Reconstruct UCM screens in history
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_reconstruct(void);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_get_showAOC
 * DESCRIPTION
 *  Get AOC display status
 * PARAMETERS
 *  void
 * RETURNS
 *  MMI_TRUE: should display AOC info
 *****************************************************************************/
extern MMI_BOOL mmi_ucm_get_show_aoc(void);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_handle_sendkeys_for_call
 * DESCRIPTION
 *   send keys (ex, sendkey1 or sendkey2) handler.  
 *   if the caller application (ex. idle) need to have different behaviors for dual sim project and single sim project, 
 *   should register different sendkey handler by itself. 
 *   This API provides common sendkeys handler (dual sim: sendkey1 and 2, single sim: sendkey).
 * PARAMETERS
 *  newCallFunc:            [IN]      callback function after sendkey is pressed. Caller should trigger make call if necessary
 *  keyevent:            [IN]   KEY_EVENT_UP, KEY_EVENT_DOWN, event occurs when the key is pressed or released
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_handle_sendkeys_for_call(FuncPtr newCallFunc, mmi_key_types_enum keyevent);

#ifdef __MMI_VIDEO_TELEPHONY__
/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_vt_volume_change_cb
 * DESCRIPTION
 *  Handler for that volume is changed on non_VTCS incall screen. this mechanism 
 *  will be removed when volume controller revise is done
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_vt_volume_change_cb(void);


/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_vt_check_launch_capability
 * DESCRIPTION
 *  Check if the video call application can be launched or not
 * PARAMETERS
 *  void
 * RETURNS
 *  MMI_TRUE means can launch video call application
 *  otherwise means cannot
 *****************************************************************************/
extern MMI_BOOL mmi_ucm_vt_check_launch_capability(void);


/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_vt_app_launch
 * DESCRIPTION
 *  launch video call application (used for entering vt app from call center)
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_vt_app_launch(void);
extern MMI_BOOL mmi_ucm_is_vt_sg_in_active(void);
#endif /*__MMI_VIDEO_TELEPHONY__*/


/* Wrapper API----------------------------------------------------------------------------------*/
/* Wrapper - won't be removed in rel 2 */
/*****************************************************************************
 * FUNCTION
 *  MakeCall
 * DESCRIPTION
 *  a wrapper API for other applications to trigger make call action
 *  Only for the applications which already use it before UCM3.0 revise.  
 *  New common api mmi_ucm_call_launch is recommended.
 * PARAMETERS
 *  ucs2_strNumber:            [IN]      UCS2 number uri with null termination
 * RETURNS
 *  void
 *****************************************************************************/
extern void MakeCall(CHAR* ucs2_strNumber);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_app_make_call
 * DESCRIPTION
 *  a wrapper API for Make call function. Only for the applications which already use it before 
 *  UCM3.0 revise.  new common api mmi_ucm_call_launch is recommended.
 * PARAMETERS
 *  call_type:     [IN]    Call type.
 *  num_uri:       [IN]    number in UCS2.
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_app_make_call(mmi_ucm_call_type_enum call_type, U8 *num_uri);

/*****************************************************************************
 * FUNCTION
 *  GetCmMarkerScrnID
 * DESCRIPTION
 *  a wrapper API for getting cm marker screen id (mmi_ucm_get_marker_scrn_id)
 * PARAMETERS
 *  void
 * RETURNS
 *  Maker screen id.
 *****************************************************************************/
extern U16 GetCmMarkerScrnID(void);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_app_entry_error_message
 * DESCRIPTION
 *  a wrapper API for displaying error message API for applications which operations are not 
 *  allowed during in-call (mmi_ucm_entry_error_message)
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_app_entry_error_message(void);

/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_app_get_marker_scrn_id
 * DESCRIPTION
 *  a wrapper API for getting cm marker screen id (mmi_ucm_get_marker_scrn_id)
 * PARAMETERS
 *  void
 * RETURNS
 *  Maker screen id.
 *****************************************************************************/
extern U16 mmi_ucm_app_get_marker_scrn_id(void);

#ifdef __MMI_BACKGROUND_CALL__
/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_app_get_intermediate_marker_scrn_id
 * DESCRIPTION
 *   a wrapper API for getting intermediate marker screen id (mmi_ucm_get_intermediate_marker_scrn_id)
 * PARAMETERS
 *  U16
 * RETURNS
 *  Intermediate marker screen id.
 *****************************************************************************/
extern U16 mmi_ucm_app_get_intermediate_marker_scrn_id(void);
#endif /*__MMI_BACKGROUND_CALL__*/

#ifdef __MMI_CLAMSHELL__
extern MMI_BOOL mmi_ucm_tmp_api_is_triggered_by_clam_close(void);
#endif /* __MMI_CLAMSHELL__ */


#if (defined(__OP01_3G__) || defined(__OP02__)) && defined(OPERA_BROWSER)
/*****************************************************************************
 * FUNCTION
 *  mmi_ucm_app_set_to_active_grp
 * DESCRIPTION
 *  Get the incall screen to be the active screen
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
extern void mmi_ucm_app_change_to_incall_scrn(void);
#endif /* (defined(__OP01_3G__) || defined(__OP02__)) && defined(OPERA_BROWSER) */

#endif /*__MMI_UCM__*/

#endif /* UCM_GPROT_H */