123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562 |
- #ifndef __SIPPHONE_DEF_G_H
- #define __SIPPHONE_DEF_G_H
- #pragma once
- // This code is generated by spgen tool!
- #include "SpHelper.h"
- namespace SIPPhone {
- //
- // const goes here
- //
- #define ePhone_Init 0
- #define ePhone_Calling 1
- #define ePhone_Proceeding 2
- #define ePhone_Completing 3
- #define ePhone_Ready 4
- #define ePhone_Terminating 5
- #define ePhone_Terminated 6
- #define PhoneService_Method_MakeCall 0
- #define PhoneService_Method_HangupCall 1
- #define PhoneService_Method_StartVideo 2
- #define PhoneService_Method_StopVideo 3
- #define PhoneService_Method_RealErrorCheck 4
- #define PhoneService_Method_ReleaseCall 5
- #define PhoneService_Method_BeginState 6
- #define PhoneService_Method_EndState 7
- #define PhoneService_Method_PhoneState 8
- #define PhoneService_Method_SetCallingParam 9
- #define PhoneService_Method_GetHandfreeOutVolume 10
- #define PhoneService_Method_SetHandfreeOutVolume 11
- #define PhoneService_Method_SetPickupOutVolume 12
- #define PhoneService_Method_GetPickupOutVolume 13
- #define PhoneService_Method_StartVideoRender 14
- #define PhoneService_Method_StopVideoRender 15
- #define PhoneService_Method_GetHandfreeInVolume 16
- #define PhoneService_Method_SetHandfreeInVolume 17
- #define PhoneService_Method_SetPickupInVolume 18
- #define PhoneService_Method_GetPickupInVolume 19
- #define PhoneService_Method_GetAudioDevices 20
- #define PhoneService_Method_StartCameraRender 21
- #define PhoneService_Method_StopCameraRender 22
- #define PhoneService_Method_IsCameraRender 23
- #define PhoneService_Method_StartBothCameraRender 24
- #define PhoneService_MethodSignature_MakeCall -1045574280
- #define PhoneService_MethodSignature_HangupCall 507892508
- #define PhoneService_MethodSignature_StartVideo -1701170457
- #define PhoneService_MethodSignature_StopVideo 1247090087
- #define PhoneService_MethodSignature_RealErrorCheck -834081006
- #define PhoneService_MethodSignature_ReleaseCall 1003966534
- #define PhoneService_MethodSignature_BeginState -700260089
- #define PhoneService_MethodSignature_EndState -1780469139
- #define PhoneService_MethodSignature_PhoneState -731514138
- #define PhoneService_MethodSignature_SetCallingParam 36667377
- #define PhoneService_MethodSignature_GetHandfreeOutVolume 1306483555
- #define PhoneService_MethodSignature_SetHandfreeOutVolume 2042464727
- #define PhoneService_MethodSignature_SetPickupOutVolume -1088342808
- #define PhoneService_MethodSignature_GetPickupOutVolume 1201465844
- #define PhoneService_MethodSignature_StartVideoRender 570775603
- #define PhoneService_MethodSignature_StopVideoRender -1920889093
- #define PhoneService_MethodSignature_GetHandfreeInVolume -973146972
- #define PhoneService_MethodSignature_SetHandfreeInVolume -1471315400
- #define PhoneService_MethodSignature_SetPickupInVolume 35636029
- #define PhoneService_MethodSignature_GetPickupInVolume -735373015
- #define PhoneService_MethodSignature_GetAudioDevices -271351251
- #define PhoneService_MethodSignature_StartCameraRender -1962833445
- #define PhoneService_MethodSignature_StopCameraRender 6416978
- #define PhoneService_MethodSignature_IsCameraRender 325255993
- #define PhoneService_MethodSignature_StartBothCameraRender -1631336261
- #define PhoneService_LogCode_MakeCall "QLR040230100"
- #define PhoneService_LogCode_HangupCall "QLR040230101"
- #define PhoneService_LogCode_StartVideo "QLR040230102"
- #define PhoneService_LogCode_StopVideo "QLR040230103"
- #define PhoneService_LogCode_RealErrorCheck "QLR040230104"
- #define PhoneService_LogCode_ReleaseCall "QLR040230105"
- #define PhoneService_LogCode_SetCallingParam "QLR040230109"
- #define PhoneService_LogCode_GetHandfreeOutVolume "QLR040230110"
- #define PhoneService_LogCode_SetHandfreeOutVolume "QLR040230111"
- #define PhoneService_LogCode_SetPickupOutVolume "QLR040230112"
- #define PhoneService_LogCode_GetPickupOutVolume "QLR040230113"
- #define PhoneService_LogCode_StartVideoRender "QLR040230114"
- #define PhoneService_LogCode_StopVideoRender "QLR040230115"
- #define PhoneService_LogCode_GetHandfreeInVolume "QLR040230116"
- #define PhoneService_LogCode_SetHandfreeInVolume "QLR040230117"
- #define PhoneService_LogCode_SetPickupInVolume "QLR040230118"
- #define PhoneService_LogCode_GetPickupInVolume "QLR040230119"
- #define PhoneService_LogCode_GetAudioDevices "QLR040230120"
- #define PhoneService_LogCode_StartCameraRender "QLR040230121"
- #define PhoneService_LogCode_StopCameraRender "QLR040230122"
- #define PhoneService_LogCode_IsCameraRender "QLR040230123"
- #define PhoneService_LogCode_StartBothCameraRender "QLR040230124"
- struct PhoneService_MakeCall_Req
- {
- CSimpleStringA to_uri;
- CSimpleStringA from_uri;
- CSimpleStringA call_id;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & to_uri & from_uri & call_id;
- }
- };
- struct PhoneService_MakeCall_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_HangupCall_Req
- {
- CSimpleStringA session_num;
- CSimpleStringA branch_server_ip;
- int branch_server_port;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & session_num & branch_server_ip & branch_server_port;
- }
- };
- struct PhoneService_HangupCall_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_StartVideo_Info
- {
- CSimpleStringA remote_ip;
- int remote_port;
- int remote_width;
- int remote_height;
- int remote_fps;
- int local_view_x;
- int local_view_y;
- int local_view_cx;
- int local_view_cy;
- int remote_view_x;
- int remote_view_y;
- int remote_view_cx;
- int remote_view_cy;
- int local_hwd_move;
- int remote_hwd_move;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & remote_ip & remote_port & remote_width & remote_height & remote_fps & local_view_x & local_view_y & local_view_cx & local_view_cy & remote_view_x & remote_view_y & remote_view_cx & remote_view_cy & local_hwd_move & remote_hwd_move;
- }
- };
- struct PhoneService_StopVideo_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_RealErrorCheck_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_ReleaseCall_Req
- {
- int type;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & type;
- }
- };
- struct PhoneService_ReleaseCall_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_BeginState_Sub
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_EndState_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_PhoneState_Info
- {
- int state;
- CSimpleStringA status;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & state & status;
- }
- };
- struct PhoneService_SetCallingParam_Info
- {
- int CallType;
- CSimpleStringA connect_session;
- CSimpleStringA connect_ip;
- int connect_port;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & CallType & connect_session & connect_ip & connect_port;
- }
- };
- struct PhoneService_GetHandfreeOutVolume_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_GetHandfreeOutVolume_Ans
- {
- int Volume;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & Volume;
- }
- };
- struct PhoneService_SetHandfreeOutVolume_Req
- {
- int Volume;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & Volume;
- }
- };
- struct PhoneService_SetHandfreeOutVolume_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_SetPickupOutVolume_Req
- {
- int Volume;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & Volume;
- }
- };
- struct PhoneService_SetPickupOutVolume_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_GetPickupOutVolume_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_GetPickupOutVolume_Ans
- {
- int Volume;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & Volume;
- }
- };
- struct PhoneService_StartVideoRender_Info
- {
- int render_type;
- int local_view_x;
- int local_view_y;
- int local_view_cx;
- int local_view_cy;
- int remote_view_x;
- int remote_view_y;
- int remote_view_cx;
- int remote_view_cy;
- int local_hwd_move;
- int remote_hwd_move;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & render_type & local_view_x & local_view_y & local_view_cx & local_view_cy & remote_view_x & remote_view_y & remote_view_cx & remote_view_cy & local_hwd_move & remote_hwd_move;
- }
- };
- struct PhoneService_StopVideoRender_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_GetHandfreeInVolume_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_GetHandfreeInVolume_Ans
- {
- int Volume;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & Volume;
- }
- };
- struct PhoneService_SetHandfreeInVolume_Req
- {
- int Volume;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & Volume;
- }
- };
- struct PhoneService_SetHandfreeInVolume_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_SetPickupInVolume_Req
- {
- int Volume;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & Volume;
- }
- };
- struct PhoneService_SetPickupInVolume_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_GetPickupInVolume_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_GetPickupInVolume_Ans
- {
- int Volume;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & Volume;
- }
- };
- struct PhoneService_GetAudioDevices_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_GetAudioDevices_Ans
- {
- int retCode;
- CSimpleStringA strHandfreeIn;
- CSimpleStringA strHandfreeOut;
- CSimpleStringA strPickupIn;
- CSimpleStringA strPickupOut;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & retCode & strHandfreeIn & strHandfreeOut & strPickupIn & strPickupOut;
- }
- };
- struct PhoneService_StartCameraRender_Req
- {
- int icameraid;
- int video_view_x;
- int video_view_y;
- int video_view_cx;
- int video_view_cy;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & icameraid & video_view_x & video_view_y & video_view_cx & video_view_cy;
- }
- };
- struct PhoneService_StartCameraRender_Ans
- {
- int result;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & result;
- }
- };
- struct PhoneService_StopCameraRender_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_StopCameraRender_Ans
- {
- int result;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & result;
- }
- };
- struct PhoneService_IsCameraRender_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PhoneService_IsCameraRender_Ans
- {
- bool result;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & result;
- }
- };
- struct PhoneService_StartBothCameraRender_Req
- {
- int env_view_x;
- int env_view_y;
- int env_view_cx;
- int env_view_cy;
- int opt_view_x;
- int opt_view_y;
- int opt_view_cx;
- int opt_view_cy;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & env_view_x & env_view_y & env_view_cx & env_view_cy & opt_view_x & opt_view_y & opt_view_cx & opt_view_cy;
- }
- };
- struct PhoneService_StartBothCameraRender_Ans
- {
- int result;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & result;
- }
- };
- ///////////////////////////
- } // namespace SIPPhone
- #endif // __SIPPHONE_DEF_G_H
|