Browse code

- removed unneed generated files. - corrected bug PySemsB2ABDialog.sip

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@298 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Raphael Coeffic authored on 03/04/2007 11:55:54
Showing 27 changed files
... ...
@@ -32,7 +32,7 @@ public:
32 32
 
33 33
     void setInput(AmAudioFile* /In/ /*in*/);
34 34
     void setOutput(AmAudioFile* /In/ /*out*/);
35
-    void setInOut(AmAudioFile* /In/ /*in*/, AmAudioFile* /*out*/);
35
+    void setInOut(AmAudioFile* /In/ /*in*/, AmAudioFile* /In/ /*out*/);
36 36
 
37 37
     virtual void process(AmEvent* /*In,Out*/);
38 38
     
... ...
@@ -40,14 +40,16 @@ public:
40 40
 	 	       const string& /*remote_uri*/,
41 41
 		       const string& /*local_party*/,
42 42
 		       const string& /*local_uri*/);
43
-    void reconnectAudio(); 
43
+
44
+    void connectSession();
45
+    void disconnectSession();
44 46
 
45 47
     int getCalleeStatus();
46 48
 
47 49
 protected:
48
-  virtual AmB2ABCalleeSession* createCalleeSession();
50
+  virtual AmB2ABCalleeSession* createCalleeSession() /Factory/;
49 51
 
50
-  virtual void onB2ABEvent(B2ABEvent* /*In,Out*/);
52
+  virtual void onB2ABEvent(B2ABEvent* /In,Out/);
51 53
 
52 54
   virtual void relayEvent(AmEvent* ev);	
53 55
 private:
... ...
@@ -63,7 +65,10 @@ public:
63 65
   AmB2ABCalleeSession(const string& /*other_local_tag*/);
64 66
 
65 67
   void onB2ABEvent(B2ABEvent* /*In,Out*/);
66
-  void reconnectAudio();
68
+
69
+  void connectSession();
70
+  void disconnectSession();
71
+
67 72
 private:
68 73
   AmB2ABCalleeSession(const AmB2ABCalleeSession& /* other_s*/);
69 74
 
70 75
deleted file mode 100644
... ...
@@ -1,210 +0,0 @@
1
-/*
2
- * Internal module API header file.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#ifndef _py_sems_libAPI_H
8
-#define _py_sems_libAPI_H
9
-
10
-
11
-#include <sip.h>
12
-#line 3 "AmUtils.sip"
13
-#include "AmUtils.h"
14
-#line 15 "sipAPIpy_sems_lib.h"
15
-
16
-
17
-/*
18
- * Convenient names to refer to the names of classes defined in this module.
19
- * These are part of the public API.
20
- */
21
-
22
-#define sipName_B2ABEvent  sipNm_py_sems_lib_B2ABEvent
23
-#define sipName_AmB2ABCalleeSession  sipNm_py_sems_lib_AmB2ABCalleeSession
24
-#define sipName_PySemsB2ABDialog  sipNm_py_sems_lib_PySemsB2ABDialog
25
-#define sipName_PySemsB2BDialog  sipNm_py_sems_lib_PySemsB2BDialog
26
-#define sipName_PySemsDialog  sipNm_py_sems_lib_PySemsDialog
27
-#define sipName_AmAudioFile  sipNm_py_sems_lib_AmAudioFile
28
-#define sipName_AmAudioEvent  sipNm_py_sems_lib_AmAudioEvent
29
-#define sipName_AmEvent  sipNm_py_sems_lib_AmEvent
30
-#define sipName_AmSipDialog  sipNm_py_sems_lib_AmSipDialog
31
-#define sipName_AmSipReply  sipNm_py_sems_lib_AmSipReply
32
-#define sipName_AmSipRequest  sipNm_py_sems_lib_AmSipRequest
33
-
34
-
35
-/* Convenient names to call the SIP API. */
36
-#define sipConvertFromSliceObject(o,len,start,stop,step,slen)   PySlice_GetIndicesEx((PySliceObject *)(o),(len),(start),(stop),(step),(slen))
37
-#define sipIsSubClassInstance(o,wt) PyObject_TypeCheck((o),(PyTypeObject *)(wt))
38
-
39
-#define sipMapStringToClass         sipAPI_py_sems_lib->api_map_string_to_class
40
-#define sipMapIntToClass            sipAPI_py_sems_lib->api_map_int_to_class
41
-#define sipMalloc                   sipAPI_py_sems_lib->api_malloc
42
-#define sipFree                     sipAPI_py_sems_lib->api_free
43
-#define sipBuildResult              sipAPI_py_sems_lib->api_build_result
44
-#define sipCallMethod               sipAPI_py_sems_lib->api_call_method
45
-#define sipParseResult              sipAPI_py_sems_lib->api_parse_result
46
-#define sipParseArgs                sipAPI_py_sems_lib->api_parse_args
47
-#define sipParsePair                sipAPI_py_sems_lib->api_parse_pair
48
-#define sipCommonCtor               sipAPI_py_sems_lib->api_common_ctor
49
-#define sipCommonDtor               sipAPI_py_sems_lib->api_common_dtor
50
-#define sipConvertFromSequenceIndex sipAPI_py_sems_lib->api_convert_from_sequence_index
51
-#define sipConvertFromVoidPtr       sipAPI_py_sems_lib->api_convert_from_void_ptr
52
-#define sipConvertToCpp             sipAPI_py_sems_lib->api_convert_to_cpp
53
-#define sipConvertToVoidPtr         sipAPI_py_sems_lib->api_convert_to_void_ptr
54
-#define sipNoFunction               sipAPI_py_sems_lib->api_no_function
55
-#define sipNoMethod                 sipAPI_py_sems_lib->api_no_method
56
-#define sipAbstractMethod           sipAPI_py_sems_lib->api_abstract_method
57
-#define sipBadClass                 sipAPI_py_sems_lib->api_bad_class
58
-#define sipBadSetType               sipAPI_py_sems_lib->api_bad_set_type
59
-#define sipBadCatcherResult         sipAPI_py_sems_lib->api_bad_catcher_result
60
-#define sipBadOperatorArg           sipAPI_py_sems_lib->api_bad_operator_arg
61
-#define sipTrace                    sipAPI_py_sems_lib->api_trace
62
-#define sipTransfer                 sipAPI_py_sems_lib->api_transfer
63
-#define sipTransferBack             sipAPI_py_sems_lib->api_transfer_back
64
-#define sipTransferTo               sipAPI_py_sems_lib->api_transfer_to
65
-#define sipWrapper_Check            sipAPI_py_sems_lib->api_wrapper_check
66
-#define sipGetWrapper               sipAPI_py_sems_lib->api_get_wrapper
67
-#define sipGetCppPtr                sipAPI_py_sems_lib->api_get_cpp_ptr
68
-#define sipGetComplexCppPtr         sipAPI_py_sems_lib->api_get_complex_cpp_ptr
69
-#define sipIsPyMethod               sipAPI_py_sems_lib->api_is_py_method
70
-#define sipCallHook                 sipAPI_py_sems_lib->api_call_hook
71
-#define sipStartThread              sipAPI_py_sems_lib->api_start_thread
72
-#define sipEndThread                sipAPI_py_sems_lib->api_end_thread
73
-#define sipEmitSignal               sipAPI_py_sems_lib->api_emit_signal
74
-#define sipConnectRx                sipAPI_py_sems_lib->api_connect_rx
75
-#define sipDisconnectRx             sipAPI_py_sems_lib->api_disconnect_rx
76
-#define sipGetSender                sipAPI_py_sems_lib->api_get_sender
77
-#define sipRaiseUnknownException    sipAPI_py_sems_lib->api_raise_unknown_exception
78
-#define sipRaiseClassException      sipAPI_py_sems_lib->api_raise_class_exception
79
-#define sipRaiseSubClassException   sipAPI_py_sems_lib->api_raise_sub_class_exception
80
-#define sipBadLengthForSlice        sipAPI_py_sems_lib->api_bad_length_for_slice
81
-#define sipClassName                sipAPI_py_sems_lib->api_class_name
82
-#define sipAddClassInstance         sipAPI_py_sems_lib->api_add_class_instance
83
-#define sipAddMappedTypeInstance    sipAPI_py_sems_lib->api_add_mapped_type_instance
84
-#define sipAddEnumInstance          sipAPI_py_sems_lib->api_add_enum_instance
85
-#define sipConvertFromNamedEnum     sipAPI_py_sems_lib->api_convert_from_named_enum
86
-#define sipGetAddress               sipAPI_py_sems_lib->api_get_address
87
-#define sipFreeConnection           sipAPI_py_sems_lib->api_free_connection
88
-#define sipEmitToSlot               sipAPI_py_sems_lib->api_emit_to_slot
89
-#define sipSameConnection           sipAPI_py_sems_lib->api_same_connection
90
-#define sipPySlotExtend             sipAPI_py_sems_lib->api_pyslot_extend
91
-#define sipConvertRx                sipAPI_py_sems_lib->api_convert_rx
92
-#define sipAddDelayedDtor           sipAPI_py_sems_lib->api_add_delayed_dtor
93
-#define sipCanConvertToInstance     sipAPI_py_sems_lib->api_can_convert_to_instance
94
-#define sipCanConvertToMappedType   sipAPI_py_sems_lib->api_can_convert_to_mapped_type
95
-#define sipConvertToInstance        sipAPI_py_sems_lib->api_convert_to_instance
96
-#define sipConvertToMappedType      sipAPI_py_sems_lib->api_convert_to_mapped_type
97
-#define sipForceConvertToInstance   sipAPI_py_sems_lib->api_force_convert_to_instance
98
-#define sipForceConvertToMappedType sipAPI_py_sems_lib->api_force_convert_to_mapped_type
99
-#define sipReleaseInstance          sipAPI_py_sems_lib->api_release_instance
100
-#define sipReleaseMappedType        sipAPI_py_sems_lib->api_release_mapped_type
101
-#define sipConvertFromInstance      sipAPI_py_sems_lib->api_convert_from_instance
102
-#define sipConvertFromNewInstance   sipAPI_py_sems_lib->api_convert_from_new_instance
103
-#define sipConvertFromMappedType    sipAPI_py_sems_lib->api_convert_from_mapped_type
104
-#define sipGetState                 sipAPI_py_sems_lib->api_get_state
105
-#define sipFindMappedType           sipAPI_py_sems_lib->api_find_mapped_type
106
-#define sipLong_AsUnsignedLong      sipAPI_py_sems_lib->api_long_as_unsigned_long
107
-#define sipExportSymbol             sipAPI_py_sems_lib->api_export_symbol
108
-#define sipImportSymbol             sipAPI_py_sems_lib->api_import_symbol
109
-#define sipRegisterIntTypes         sipAPI_py_sems_lib->api_register_int_types
110
-
111
-
112
-/* The strings used by this module. */
113
-extern char sipNm_py_sems_lib_get_header_param[];
114
-extern char sipNm_py_sems_lib_B2ABEvent[];
115
-extern char sipNm_py_sems_lib_AmB2ABCalleeSession[];
116
-extern char sipNm_py_sems_lib_relayEvent[];
117
-extern char sipNm_py_sems_lib_onB2ABEvent[];
118
-extern char sipNm_py_sems_lib_createCalleeSession[];
119
-extern char sipNm_py_sems_lib_getCalleeStatus[];
120
-extern char sipNm_py_sems_lib_reconnectAudio[];
121
-extern char sipNm_py_sems_lib_connectCallee[];
122
-extern char sipNm_py_sems_lib_PySemsB2ABDialog[];
123
-extern char sipNm_py_sems_lib_PySemsB2BDialog[];
124
-extern char sipNm_py_sems_lib_process[];
125
-extern char sipNm_py_sems_lib_setInOut[];
126
-extern char sipNm_py_sems_lib_setOutput[];
127
-extern char sipNm_py_sems_lib_setInput[];
128
-extern char sipNm_py_sems_lib_onDtmf[];
129
-extern char sipNm_py_sems_lib_onBye[];
130
-extern char sipNm_py_sems_lib_onCancel[];
131
-extern char sipNm_py_sems_lib_onSessionStart[];
132
-extern char sipNm_py_sems_lib_onInvite[];
133
-extern char sipNm_py_sems_lib_setStopped[];
134
-extern char sipNm_py_sems_lib_acceptAudio[];
135
-extern char sipNm_py_sems_lib_dlg[];
136
-extern char sipNm_py_sems_lib_PySemsDialog[];
137
-extern char sipNm_py_sems_lib_getDataSize[];
138
-extern char sipNm_py_sems_lib_close[];
139
-extern char sipNm_py_sems_lib_rewind[];
140
-extern char sipNm_py_sems_lib_open[];
141
-extern char sipNm_py_sems_lib_setLoop[];
142
-extern char sipNm_py_sems_lib_getLoop[];
143
-extern char sipNm_py_sems_lib_Write[];
144
-extern char sipNm_py_sems_lib_Read[];
145
-extern char sipNm_py_sems_lib_AmAudioFile[];
146
-extern char sipNm_py_sems_lib_cleared[];
147
-extern char sipNm_py_sems_lib_noAudio[];
148
-extern char sipNm_py_sems_lib_AmAudioEvent[];
149
-extern char sipNm_py_sems_lib_processed[];
150
-extern char sipNm_py_sems_lib_event_id[];
151
-extern char sipNm_py_sems_lib_AmEvent[];
152
-extern char sipNm_py_sems_lib_reinvite[];
153
-extern char sipNm_py_sems_lib_update[];
154
-extern char sipNm_py_sems_lib_cancel[];
155
-extern char sipNm_py_sems_lib_bye[];
156
-extern char sipNm_py_sems_lib_sendRequest[];
157
-extern char sipNm_py_sems_lib_reply[];
158
-extern char sipNm_py_sems_lib_updateStatus[];
159
-extern char sipNm_py_sems_lib_getContactHdr[];
160
-extern char sipNm_py_sems_lib_getStatus[];
161
-extern char sipNm_py_sems_lib_getUACTransPending[];
162
-extern char sipNm_py_sems_lib_setRoute[];
163
-extern char sipNm_py_sems_lib_getRoute[];
164
-extern char sipNm_py_sems_lib_local_party[];
165
-extern char sipNm_py_sems_lib_remote_party[];
166
-extern char sipNm_py_sems_lib_contact_uri[];
167
-extern char sipNm_py_sems_lib_remote_uri[];
168
-extern char sipNm_py_sems_lib_local_uri[];
169
-extern char sipNm_py_sems_lib_sip_port[];
170
-extern char sipNm_py_sems_lib_sip_ip[];
171
-extern char sipNm_py_sems_lib_Disconnecting[];
172
-extern char sipNm_py_sems_lib_Connected[];
173
-extern char sipNm_py_sems_lib_Pending[];
174
-extern char sipNm_py_sems_lib_Disconnected[];
175
-extern char sipNm_py_sems_lib_AmSipDialog[];
176
-extern char sipNm_py_sems_lib_local_tag[];
177
-extern char sipNm_py_sems_lib_remote_tag[];
178
-extern char sipNm_py_sems_lib_next_request_uri[];
179
-extern char sipNm_py_sems_lib_reason[];
180
-extern char sipNm_py_sems_lib_code[];
181
-extern char sipNm_py_sems_lib_AmSipReply[];
182
-extern char sipNm_py_sems_lib_getHeader[];
183
-extern char sipNm_py_sems_lib_key[];
184
-extern char sipNm_py_sems_lib_next_hop[];
185
-extern char sipNm_py_sems_lib_route[];
186
-extern char sipNm_py_sems_lib_body[];
187
-extern char sipNm_py_sems_lib_hdrs[];
188
-extern char sipNm_py_sems_lib_cseq[];
189
-extern char sipNm_py_sems_lib_to_tag[];
190
-extern char sipNm_py_sems_lib_from_tag[];
191
-extern char sipNm_py_sems_lib_callid[];
192
-extern char sipNm_py_sems_lib_to[];
193
-extern char sipNm_py_sems_lib_from[];
194
-extern char sipNm_py_sems_lib_from_uri[];
195
-extern char sipNm_py_sems_lib_r_uri[];
196
-extern char sipNm_py_sems_lib_port[];
197
-extern char sipNm_py_sems_lib_dstip[];
198
-extern char sipNm_py_sems_lib_domain[];
199
-extern char sipNm_py_sems_lib_user[];
200
-extern char sipNm_py_sems_lib_method[];
201
-extern char sipNm_py_sems_lib_cmd[];
202
-extern char sipNm_py_sems_lib_AmSipRequest[];
203
-extern char sipNm_py_sems_lib_string[];
204
-
205
-
206
-/* The SIP API, this module's API and the APIs of any imported modules. */
207
-extern const sipAPIDef *sipAPI_py_sems_lib;
208
-extern sipExportedModuleDef sipModuleAPI_py_sems_lib;
209
-
210
-#endif
211 0
deleted file mode 100644
... ...
@@ -1,163 +0,0 @@
1
-/*
2
- * Interface wrapper code.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#include "sipAPIpy_sems_lib.h"
8
-#include "sippy_sems_libAmAudioEvent.h"
9
-
10
-#include "sippy_sems_libAmEvent.h"
11
-
12
-
13
-sipAmAudioEvent::sipAmAudioEvent(int a0): AmAudioEvent(a0), sipPySelf(0)
14
-{
15
-    sipTrace(SIP_TRACE_CTORS,"sipAmAudioEvent::sipAmAudioEvent(int) (this=0x%08x)\n",this);
16
-
17
-    sipCommonCtor(NULL,0);
18
-}
19
-
20
-sipAmAudioEvent::sipAmAudioEvent(const AmAudioEvent& a0): AmAudioEvent(a0), sipPySelf(0)
21
-{
22
-    sipTrace(SIP_TRACE_CTORS,"sipAmAudioEvent::sipAmAudioEvent(const AmAudioEvent&) (this=0x%08x)\n",this);
23
-
24
-    sipCommonCtor(NULL,0);
25
-}
26
-
27
-sipAmAudioEvent::~sipAmAudioEvent()
28
-{
29
-    sipTrace(SIP_TRACE_DTORS,"sipAmAudioEvent::~sipAmAudioEvent() (this=0x%08x)\n",this);
30
-
31
-    sipCommonDtor(sipPySelf);
32
-}
33
-
34
-
35
-/* Cast a pointer to a type somewhere in its superclass hierarchy. */
36
-extern "C" {static void *cast_AmAudioEvent(void *, sipWrapperType *);}
37
-static void *cast_AmAudioEvent(void *ptr,sipWrapperType *targetClass)
38
-{
39
-    void *res;
40
-
41
-    if (targetClass == sipClass_AmAudioEvent)
42
-        return ptr;
43
-
44
-    if ((res = sipCast_AmEvent((AmEvent *)(AmAudioEvent *)ptr,targetClass)) != NULL)
45
-        return res;
46
-
47
-    return NULL;
48
-}
49
-
50
-
51
-/* Call the instance's destructor. */
52
-extern "C" {static void release_AmAudioEvent(void *, int);}
53
-static void release_AmAudioEvent(void *ptr,int state)
54
-{
55
-    if (state & SIP_DERIVED_CLASS)
56
-        delete reinterpret_cast<sipAmAudioEvent *>(ptr);
57
-    else
58
-        delete reinterpret_cast<AmAudioEvent *>(ptr);
59
-}
60
-
61
-
62
-extern "C" {static void dealloc_AmAudioEvent(sipWrapper *);}
63
-static void dealloc_AmAudioEvent(sipWrapper *sipSelf)
64
-{
65
-    sipTrace(SIP_TRACE_DEALLOCS,"dealloc_AmAudioEvent()\n");
66
-
67
-    if (sipIsDerived(sipSelf))
68
-        reinterpret_cast<sipAmAudioEvent *>(sipSelf->u.cppPtr)->sipPySelf = NULL;
69
-
70
-    if (sipIsPyOwned(sipSelf))
71
-    {
72
-        release_AmAudioEvent(sipSelf->u.cppPtr,sipSelf->flags);
73
-    }
74
-}
75
-
76
-
77
-extern "C" {static void *init_AmAudioEvent(sipWrapper *, PyObject *, sipWrapper **, int *);}
78
-static void *init_AmAudioEvent(sipWrapper *sipSelf,PyObject *sipArgs,sipWrapper **,int *sipArgsParsed)
79
-{
80
-    sipAmAudioEvent *sipCpp = 0;
81
-
82
-    sipTrace(SIP_TRACE_INITS,"init_AmAudioEvent()\n");
83
-
84
-    if (!sipCpp)
85
-    {
86
-        int a0;
87
-
88
-        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
89
-        {
90
-            sipCpp = new sipAmAudioEvent(a0);
91
-        }
92
-    }
93
-
94
-    if (!sipCpp)
95
-    {
96
-        const AmAudioEvent * a0;
97
-
98
-        if (sipParseArgs(sipArgsParsed,sipArgs,"JA",sipClass_AmAudioEvent,&a0))
99
-        {
100
-            sipCpp = new sipAmAudioEvent(*a0);
101
-        }
102
-    }
103
-
104
-    if (sipCpp)
105
-        sipCpp->sipPySelf = sipSelf;
106
-
107
-    return sipCpp;
108
-}
109
-
110
-
111
-extern "C" {static void *forceConvertTo_AmAudioEvent(PyObject *, int *);}
112
-static void *forceConvertTo_AmAudioEvent(PyObject *valobj,int *iserrp)
113
-{
114
-    if (*iserrp || valobj == NULL)
115
-        return NULL;
116
-
117
-    if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmAudioEvent))
118
-        return sipConvertToCpp(valobj,sipClass_AmAudioEvent,iserrp);
119
-
120
-    sipBadClass(sipNm_py_sems_lib_AmAudioEvent);
121
-
122
-    *iserrp = 1;
123
-
124
-    return NULL;
125
-}
126
-
127
-
128
-/* Define this type's super-types. */
129
-static sipEncodedClassDef supers_AmAudioEvent[] = {{6, 255, 1}};
130
-
131
-static sipEnumMemberDef enummembers_AmAudioEvent[] = {
132
-    {sipNm_py_sems_lib_cleared, AmAudioEvent::cleared, 1},
133
-    {sipNm_py_sems_lib_noAudio, AmAudioEvent::noAudio, 1},
134
-};
135
-
136
-
137
-sipTypeDef sipType_py_sems_lib_AmAudioEvent = {
138
-    0,
139
-    SIP_TYPE_SCC,
140
-    "py_sems_lib.AmAudioEvent",
141
-    0,
142
-    {0, 0, 1},
143
-    supers_AmAudioEvent,
144
-    0,
145
-    0, 0,
146
-    2, enummembers_AmAudioEvent,
147
-    0,
148
-    init_AmAudioEvent,
149
-    0,
150
-    0,
151
-    0,
152
-    0,
153
-    0,
154
-    0,
155
-    dealloc_AmAudioEvent,
156
-    cast_AmAudioEvent,
157
-    release_AmAudioEvent,
158
-    forceConvertTo_AmAudioEvent,
159
-    0,
160
-    0,
161
-    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
162
-    0
163
-};
164 0
deleted file mode 100644
... ...
@@ -1,38 +0,0 @@
1
-/*
2
- * Interface header file.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#ifndef _py_sems_libAmAudioEvent_h
8
-#define _py_sems_libAmAudioEvent_h
9
-
10
-#line 29 "AmAudio.sip"
11
-#include "../../../core/AmAudio.h"
12
-#line 13 "sippy_sems_libAmAudioEvent.h"
13
-
14
-#define sipClass_AmAudioEvent             sipModuleAPI_py_sems_lib.em_types[7]
15
-#define sipCast_AmAudioEvent              sipType_py_sems_lib_AmAudioEvent.td_cast
16
-#define sipForceConvertTo_AmAudioEvent    sipType_py_sems_lib_AmAudioEvent.td_fcto
17
-
18
-#define sipEnum_AmAudioEvent_EventType              sipModuleAPI_py_sems_lib.em_enums[1]
19
-
20
-extern sipTypeDef sipType_py_sems_lib_AmAudioEvent;
21
-
22
-
23
-class sipAmAudioEvent : public AmAudioEvent
24
-{
25
-public:
26
-    sipAmAudioEvent(int);
27
-    sipAmAudioEvent(const AmAudioEvent&);
28
-    ~sipAmAudioEvent();
29
-
30
-public:
31
-    sipWrapper *sipPySelf;
32
-
33
-private:
34
-    sipAmAudioEvent(const sipAmAudioEvent &);
35
-    sipAmAudioEvent &operator = (const sipAmAudioEvent &);
36
-};
37
-
38
-#endif
39 0
deleted file mode 100644
... ...
@@ -1,293 +0,0 @@
1
-/*
2
- * Interface wrapper code.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#include "sipAPIpy_sems_lib.h"
8
-#include "sippy_sems_libAmAudioFile.h"
9
-
10
-#include "sippy_sems_libAmAudioFile.h"
11
-#include "sippy_sems_libstring.h"
12
-
13
-
14
-
15
-extern "C" {static PyObject *meth_AmAudioFile_getLoop(PyObject *, PyObject *);}
16
-static PyObject *meth_AmAudioFile_getLoop(PyObject *sipSelf,PyObject *sipArgs)
17
-{
18
-    sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_getLoop()\n");
19
-
20
-    int sipArgsParsed = 0;
21
-
22
-    {
23
-        AmAudioFile *sipCpp;
24
-
25
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmAudioFile,&sipCpp))
26
-        {
27
-            bool sipRes = 0;
28
-
29
-#line 65 "AmAudio.sip"
30
-	sipRes = sipCpp->loop.get();
31
-#line 32 "sippy_sems_libAmAudioFile.cpp"
32
-
33
-            return PyBool_FromLong(sipRes);
34
-        }
35
-    }
36
-
37
-    /* Raise an exception if the arguments couldn't be parsed. */
38
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_getLoop);
39
-
40
-    return NULL;
41
-}
42
-
43
-
44
-extern "C" {static PyObject *meth_AmAudioFile_setLoop(PyObject *, PyObject *);}
45
-static PyObject *meth_AmAudioFile_setLoop(PyObject *sipSelf,PyObject *sipArgs)
46
-{
47
-    sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_setLoop()\n");
48
-
49
-    int sipArgsParsed = 0;
50
-
51
-    {
52
-        bool a0;
53
-        AmAudioFile *sipCpp;
54
-
55
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipClass_AmAudioFile,&sipCpp,&a0))
56
-        {
57
-#line 70 "AmAudio.sip"
58
-	sipCpp->loop.set(a0);
59
-#line 60 "sippy_sems_libAmAudioFile.cpp"
60
-
61
-            Py_INCREF(Py_None);
62
-            return Py_None;
63
-        }
64
-    }
65
-
66
-    /* Raise an exception if the arguments couldn't be parsed. */
67
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_setLoop);
68
-
69
-    return NULL;
70
-}
71
-
72
-
73
-extern "C" {static PyObject *meth_AmAudioFile_open(PyObject *, PyObject *);}
74
-static PyObject *meth_AmAudioFile_open(PyObject *sipSelf,PyObject *sipArgs)
75
-{
76
-    sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_open()\n");
77
-
78
-    int sipArgsParsed = 0;
79
-
80
-    {
81
-        const string * a0;
82
-        int a0State = 0;
83
-        AmAudioFile::OpenMode a1 = AmAudioFile::Read;
84
-        bool a2 = 0;
85
-        AmAudioFile *sipCpp;
86
-
87
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"BM1|Eb",&sipSelf,sipClass_AmAudioFile,&sipCpp,sipMappedType_string,&a0,&a0State,sipEnum_AmAudioFile_OpenMode,&a1,&a2))
88
-        {
89
-            int sipRes;
90
-
91
-            sipRes = sipCpp->open(*a0,a1,a2);
92
-
93
-            sipReleaseMappedType(const_cast<string *>(a0),sipMappedType_string,a0State);
94
-
95
-            return PyInt_FromLong(sipRes);
96
-        }
97
-    }
98
-
99
-    /* Raise an exception if the arguments couldn't be parsed. */
100
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_open);
101
-
102
-    return NULL;
103
-}
104
-
105
-
106
-extern "C" {static PyObject *meth_AmAudioFile_rewind(PyObject *, PyObject *);}
107
-static PyObject *meth_AmAudioFile_rewind(PyObject *sipSelf,PyObject *sipArgs)
108
-{
109
-    sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_rewind()\n");
110
-
111
-    int sipArgsParsed = 0;
112
-
113
-    {
114
-        AmAudioFile *sipCpp;
115
-
116
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmAudioFile,&sipCpp))
117
-        {
118
-            sipCpp->rewind();
119
-
120
-            Py_INCREF(Py_None);
121
-            return Py_None;
122
-        }
123
-    }
124
-
125
-    /* Raise an exception if the arguments couldn't be parsed. */
126
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_rewind);
127
-
128
-    return NULL;
129
-}
130
-
131
-
132
-extern "C" {static PyObject *meth_AmAudioFile_close(PyObject *, PyObject *);}
133
-static PyObject *meth_AmAudioFile_close(PyObject *sipSelf,PyObject *sipArgs)
134
-{
135
-    sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_close()\n");
136
-
137
-    int sipArgsParsed = 0;
138
-
139
-    {
140
-        AmAudioFile *sipCpp;
141
-
142
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmAudioFile,&sipCpp))
143
-        {
144
-            sipCpp->close();
145
-
146
-            Py_INCREF(Py_None);
147
-            return Py_None;
148
-        }
149
-    }
150
-
151
-    /* Raise an exception if the arguments couldn't be parsed. */
152
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_close);
153
-
154
-    return NULL;
155
-}
156
-
157
-
158
-extern "C" {static PyObject *meth_AmAudioFile_getDataSize(PyObject *, PyObject *);}
159
-static PyObject *meth_AmAudioFile_getDataSize(PyObject *sipSelf,PyObject *sipArgs)
160
-{
161
-    sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_getDataSize()\n");
162
-
163
-    int sipArgsParsed = 0;
164
-
165
-    {
166
-        AmAudioFile *sipCpp;
167
-
168
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmAudioFile,&sipCpp))
169
-        {
170
-            int sipRes;
171
-
172
-            sipRes = sipCpp->getDataSize();
173
-
174
-            return PyInt_FromLong(sipRes);
175
-        }
176
-    }
177
-
178
-    /* Raise an exception if the arguments couldn't be parsed. */
179
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_getDataSize);
180
-
181
-    return NULL;
182
-}
183
-
184
-
185
-/* Cast a pointer to a type somewhere in its superclass hierarchy. */
186
-extern "C" {static void *cast_AmAudioFile(void *, sipWrapperType *);}
187
-static void *cast_AmAudioFile(void *ptr,sipWrapperType *targetClass)
188
-{
189
-    if (targetClass == sipClass_AmAudioFile)
190
-        return ptr;
191
-
192
-    return NULL;
193
-}
194
-
195
-
196
-/* Call the instance's destructor. */
197
-extern "C" {static void release_AmAudioFile(void *, int);}
198
-static void release_AmAudioFile(void *ptr,int)
199
-{
200
-    delete reinterpret_cast<AmAudioFile *>(ptr);
201
-}
202
-
203
-
204
-extern "C" {static void dealloc_AmAudioFile(sipWrapper *);}
205
-static void dealloc_AmAudioFile(sipWrapper *sipSelf)
206
-{
207
-    sipTrace(SIP_TRACE_DEALLOCS,"dealloc_AmAudioFile()\n");
208
-
209
-    if (sipIsPyOwned(sipSelf))
210
-    {
211
-        release_AmAudioFile(sipSelf->u.cppPtr,0);
212
-    }
213
-}
214
-
215
-
216
-extern "C" {static void *init_AmAudioFile(sipWrapper *, PyObject *, sipWrapper **, int *);}
217
-static void *init_AmAudioFile(sipWrapper *,PyObject *sipArgs,sipWrapper **,int *sipArgsParsed)
218
-{
219
-    AmAudioFile *sipCpp = 0;
220
-
221
-    sipTrace(SIP_TRACE_INITS,"init_AmAudioFile()\n");
222
-
223
-    if (!sipCpp)
224
-    {
225
-        if (sipParseArgs(sipArgsParsed,sipArgs,""))
226
-        {
227
-            sipCpp = new AmAudioFile();
228
-        }
229
-    }
230
-
231
-    return sipCpp;
232
-}
233
-
234
-
235
-extern "C" {static void *forceConvertTo_AmAudioFile(PyObject *, int *);}
236
-static void *forceConvertTo_AmAudioFile(PyObject *valobj,int *iserrp)
237
-{
238
-    if (*iserrp || valobj == NULL)
239
-        return NULL;
240
-
241
-    if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmAudioFile))
242
-        return sipConvertToCpp(valobj,sipClass_AmAudioFile,iserrp);
243
-
244
-    sipBadClass(sipNm_py_sems_lib_AmAudioFile);
245
-
246
-    *iserrp = 1;
247
-
248
-    return NULL;
249
-}
250
-
251
-
252
-static PyMethodDef methods_AmAudioFile[] = {
253
-    {sipNm_py_sems_lib_close, meth_AmAudioFile_close, METH_VARARGS, NULL},
254
-    {sipNm_py_sems_lib_getDataSize, meth_AmAudioFile_getDataSize, METH_VARARGS, NULL},
255
-    {sipNm_py_sems_lib_getLoop, meth_AmAudioFile_getLoop, METH_VARARGS, NULL},
256
-    {sipNm_py_sems_lib_open, meth_AmAudioFile_open, METH_VARARGS, NULL},
257
-    {sipNm_py_sems_lib_rewind, meth_AmAudioFile_rewind, METH_VARARGS, NULL},
258
-    {sipNm_py_sems_lib_setLoop, meth_AmAudioFile_setLoop, METH_VARARGS, NULL}
259
-};
260
-
261
-static sipEnumMemberDef enummembers_AmAudioFile[] = {
262
-    {sipNm_py_sems_lib_Read, AmAudioFile::Read, 0},
263
-    {sipNm_py_sems_lib_Write, AmAudioFile::Write, 0},
264
-};
265
-
266
-
267
-sipTypeDef sipType_py_sems_lib_AmAudioFile = {
268
-    0,
269
-    0,
270
-    "py_sems_lib.AmAudioFile",
271
-    0,
272
-    {0, 0, 1},
273
-    0,
274
-    0,
275
-    6, methods_AmAudioFile,
276
-    2, enummembers_AmAudioFile,
277
-    0,
278
-    init_AmAudioFile,
279
-    0,
280
-    0,
281
-    0,
282
-    0,
283
-    0,
284
-    0,
285
-    dealloc_AmAudioFile,
286
-    cast_AmAudioFile,
287
-    release_AmAudioFile,
288
-    forceConvertTo_AmAudioFile,
289
-    0,
290
-    0,
291
-    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
292
-    0
293
-};
294 0
deleted file mode 100644
... ...
@@ -1,22 +0,0 @@
1
-/*
2
- * Interface header file.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#ifndef _py_sems_libAmAudioFile_h
8
-#define _py_sems_libAmAudioFile_h
9
-
10
-#line 51 "AmAudio.sip"
11
-#include "../../../core/AmAudio.h"
12
-#line 13 "sippy_sems_libAmAudioFile.h"
13
-
14
-#define sipClass_AmAudioFile             sipModuleAPI_py_sems_lib.em_types[5]
15
-#define sipCast_AmAudioFile              sipType_py_sems_lib_AmAudioFile.td_cast
16
-#define sipForceConvertTo_AmAudioFile    sipType_py_sems_lib_AmAudioFile.td_fcto
17
-
18
-#define sipEnum_AmAudioFile_OpenMode              sipModuleAPI_py_sems_lib.em_enums[0]
19
-
20
-extern sipTypeDef sipType_py_sems_lib_AmAudioFile;
21
-
22
-#endif
23 0
deleted file mode 100644
... ...
@@ -1,173 +0,0 @@
1
-/*
2
- * Interface wrapper code.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#include "sipAPIpy_sems_lib.h"
8
-#include "sippy_sems_libAmB2ABCalleeSession.h"
9
-
10
-#include "sippy_sems_libstring.h"
11
-#include "sippy_sems_libAmB2ABCalleeSession.h"
12
-#include "sippy_sems_libB2ABEvent.h"
13
-
14
-
15
-
16
-extern "C" {static PyObject *meth_AmB2ABCalleeSession_onB2ABEvent(PyObject *, PyObject *);}
17
-static PyObject *meth_AmB2ABCalleeSession_onB2ABEvent(PyObject *sipSelf,PyObject *sipArgs)
18
-{
19
-    sipTrace(SIP_TRACE_METHODS,"meth_AmB2ABCalleeSession_onB2ABEvent()\n");
20
-
21
-    int sipArgsParsed = 0;
22
-
23
-    {
24
-        B2ABEvent * a0;
25
-        AmB2ABCalleeSession *sipCpp;
26
-
27
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ@",&sipSelf,sipClass_AmB2ABCalleeSession,&sipCpp,sipClass_B2ABEvent,&a0))
28
-        {
29
-            sipCpp->onB2ABEvent(a0);
30
-
31
-            Py_INCREF(Py_None);
32
-            return Py_None;
33
-        }
34
-    }
35
-
36
-    /* Raise an exception if the arguments couldn't be parsed. */
37
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmB2ABCalleeSession,sipNm_py_sems_lib_onB2ABEvent);
38
-
39
-    return NULL;
40
-}
41
-
42
-
43
-extern "C" {static PyObject *meth_AmB2ABCalleeSession_reconnectAudio(PyObject *, PyObject *);}
44
-static PyObject *meth_AmB2ABCalleeSession_reconnectAudio(PyObject *sipSelf,PyObject *sipArgs)
45
-{
46
-    sipTrace(SIP_TRACE_METHODS,"meth_AmB2ABCalleeSession_reconnectAudio()\n");
47
-
48
-    int sipArgsParsed = 0;
49
-
50
-    {
51
-        AmB2ABCalleeSession *sipCpp;
52
-
53
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmB2ABCalleeSession,&sipCpp))
54
-        {
55
-            sipCpp->reconnectAudio();
56
-
57
-            Py_INCREF(Py_None);
58
-            return Py_None;
59
-        }
60
-    }
61
-
62
-    /* Raise an exception if the arguments couldn't be parsed. */
63
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmB2ABCalleeSession,sipNm_py_sems_lib_reconnectAudio);
64
-
65
-    return NULL;
66
-}
67
-
68
-
69
-/* Cast a pointer to a type somewhere in its superclass hierarchy. */
70
-extern "C" {static void *cast_AmB2ABCalleeSession(void *, sipWrapperType *);}
71
-static void *cast_AmB2ABCalleeSession(void *ptr,sipWrapperType *targetClass)
72
-{
73
-    if (targetClass == sipClass_AmB2ABCalleeSession)
74
-        return ptr;
75
-
76
-    return NULL;
77
-}
78
-
79
-
80
-/* Call the instance's destructor. */
81
-extern "C" {static void release_AmB2ABCalleeSession(void *, int);}
82
-static void release_AmB2ABCalleeSession(void *ptr,int)
83
-{
84
-    delete reinterpret_cast<AmB2ABCalleeSession *>(ptr);
85
-}
86
-
87
-
88
-extern "C" {static void dealloc_AmB2ABCalleeSession(sipWrapper *);}
89
-static void dealloc_AmB2ABCalleeSession(sipWrapper *sipSelf)
90
-{
91
-    sipTrace(SIP_TRACE_DEALLOCS,"dealloc_AmB2ABCalleeSession()\n");
92
-
93
-    if (sipIsPyOwned(sipSelf))
94
-    {
95
-        release_AmB2ABCalleeSession(sipSelf->u.cppPtr,0);
96
-    }
97
-}
98
-
99
-
100
-extern "C" {static void *init_AmB2ABCalleeSession(sipWrapper *, PyObject *, sipWrapper **, int *);}
101
-static void *init_AmB2ABCalleeSession(sipWrapper *,PyObject *sipArgs,sipWrapper **,int *sipArgsParsed)
102
-{
103
-    AmB2ABCalleeSession *sipCpp = 0;
104
-
105
-    sipTrace(SIP_TRACE_INITS,"init_AmB2ABCalleeSession()\n");
106
-
107
-    if (!sipCpp)
108
-    {
109
-        const string * a0;
110
-        int a0State = 0;
111
-
112
-        if (sipParseArgs(sipArgsParsed,sipArgs,"M1",sipMappedType_string,&a0,&a0State))
113
-        {
114
-            sipCpp = new AmB2ABCalleeSession(*a0);
115
-
116
-            sipReleaseMappedType(const_cast<string *>(a0),sipMappedType_string,a0State);
117
-        }
118
-    }
119
-
120
-    return sipCpp;
121
-}
122
-
123
-
124
-extern "C" {static void *forceConvertTo_AmB2ABCalleeSession(PyObject *, int *);}
125
-static void *forceConvertTo_AmB2ABCalleeSession(PyObject *valobj,int *iserrp)
126
-{
127
-    if (*iserrp || valobj == NULL)
128
-        return NULL;
129
-
130
-    if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmB2ABCalleeSession))
131
-        return sipConvertToCpp(valobj,sipClass_AmB2ABCalleeSession,iserrp);
132
-
133
-    sipBadClass(sipNm_py_sems_lib_AmB2ABCalleeSession);
134
-
135
-    *iserrp = 1;
136
-
137
-    return NULL;
138
-}
139
-
140
-
141
-static PyMethodDef methods_AmB2ABCalleeSession[] = {
142
-    {sipNm_py_sems_lib_onB2ABEvent, meth_AmB2ABCalleeSession_onB2ABEvent, METH_VARARGS, NULL},
143
-    {sipNm_py_sems_lib_reconnectAudio, meth_AmB2ABCalleeSession_reconnectAudio, METH_VARARGS, NULL}
144
-};
145
-
146
-
147
-sipTypeDef sipType_py_sems_lib_AmB2ABCalleeSession = {
148
-    0,
149
-    0,
150
-    "py_sems_lib.AmB2ABCalleeSession",
151
-    0,
152
-    {0, 0, 1},
153
-    0,
154
-    0,
155
-    2, methods_AmB2ABCalleeSession,
156
-    0, 0,
157
-    0,
158
-    init_AmB2ABCalleeSession,
159
-    0,
160
-    0,
161
-    0,
162
-    0,
163
-    0,
164
-    0,
165
-    dealloc_AmB2ABCalleeSession,
166
-    cast_AmB2ABCalleeSession,
167
-    release_AmB2ABCalleeSession,
168
-    forceConvertTo_AmB2ABCalleeSession,
169
-    0,
170
-    0,
171
-    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
172
-    0
173
-};
174 0
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-/*
2
- * Interface header file.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#ifndef _py_sems_libAmB2ABCalleeSession_h
8
-#define _py_sems_libAmB2ABCalleeSession_h
9
-
10
-#line 60 "PySemsB2ABDialog.sip"
11
-#include "../../../core/AmB2ABSession.h"
12
-#line 13 "sippy_sems_libAmB2ABCalleeSession.h"
13
-
14
-#define sipClass_AmB2ABCalleeSession             sipModuleAPI_py_sems_lib.em_types[1]
15
-#define sipCast_AmB2ABCalleeSession              sipType_py_sems_lib_AmB2ABCalleeSession.td_cast
16
-#define sipForceConvertTo_AmB2ABCalleeSession    sipType_py_sems_lib_AmB2ABCalleeSession.td_fcto
17
-
18
-extern sipTypeDef sipType_py_sems_lib_AmB2ABCalleeSession;
19
-
20
-#endif
21 0
deleted file mode 100644
... ...
@@ -1,218 +0,0 @@
1
-/*
2
- * Interface wrapper code.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#include "sipAPIpy_sems_lib.h"
8
-#include "sippy_sems_libAmEvent.h"
9
-
10
-sipAmEvent::sipAmEvent(int a0): AmEvent(a0), sipPySelf(0)
11
-{
12
-    sipTrace(SIP_TRACE_CTORS,"sipAmEvent::sipAmEvent(int) (this=0x%08x)\n",this);
13
-
14
-    sipCommonCtor(NULL,0);
15
-}
16
-
17
-sipAmEvent::sipAmEvent(const AmEvent& a0): AmEvent(a0), sipPySelf(0)
18
-{
19
-    sipTrace(SIP_TRACE_CTORS,"sipAmEvent::sipAmEvent(const AmEvent&) (this=0x%08x)\n",this);
20
-
21
-    sipCommonCtor(NULL,0);
22
-}
23
-
24
-sipAmEvent::~sipAmEvent()
25
-{
26
-    sipTrace(SIP_TRACE_DTORS,"sipAmEvent::~sipAmEvent() (this=0x%08x)\n",this);
27
-
28
-    sipCommonDtor(sipPySelf);
29
-}
30
-
31
-
32
-/* Cast a pointer to a type somewhere in its superclass hierarchy. */
33
-extern "C" {static void *cast_AmEvent(void *, sipWrapperType *);}
34
-static void *cast_AmEvent(void *ptr,sipWrapperType *targetClass)
35
-{
36
-    if (targetClass == sipClass_AmEvent)
37
-        return ptr;
38
-
39
-    return NULL;
40
-}
41
-
42
-
43
-/* Call the instance's destructor. */
44
-extern "C" {static void release_AmEvent(void *, int);}
45
-static void release_AmEvent(void *ptr,int state)
46
-{
47
-    if (state & SIP_DERIVED_CLASS)
48
-        delete reinterpret_cast<sipAmEvent *>(ptr);
49
-    else
50
-        delete reinterpret_cast<AmEvent *>(ptr);
51
-}
52
-
53
-
54
-extern "C" {static void dealloc_AmEvent(sipWrapper *);}
55
-static void dealloc_AmEvent(sipWrapper *sipSelf)
56
-{
57
-    sipTrace(SIP_TRACE_DEALLOCS,"dealloc_AmEvent()\n");
58
-
59
-    if (sipIsDerived(sipSelf))
60
-        reinterpret_cast<sipAmEvent *>(sipSelf->u.cppPtr)->sipPySelf = NULL;
61
-
62
-    if (sipIsPyOwned(sipSelf))
63
-    {
64
-        release_AmEvent(sipSelf->u.cppPtr,sipSelf->flags);
65
-    }
66
-}
67
-
68
-
69
-extern "C" {static void *init_AmEvent(sipWrapper *, PyObject *, sipWrapper **, int *);}
70
-static void *init_AmEvent(sipWrapper *sipSelf,PyObject *sipArgs,sipWrapper **,int *sipArgsParsed)
71
-{
72
-    sipAmEvent *sipCpp = 0;
73
-
74
-    sipTrace(SIP_TRACE_INITS,"init_AmEvent()\n");
75
-
76
-    if (!sipCpp)
77
-    {
78
-        int a0;
79
-
80
-        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
81
-        {
82
-            sipCpp = new sipAmEvent(a0);
83
-        }
84
-    }
85
-
86
-    if (!sipCpp)
87
-    {
88
-        const AmEvent * a0;
89
-
90
-        if (sipParseArgs(sipArgsParsed,sipArgs,"JA",sipClass_AmEvent,&a0))
91
-        {
92
-            sipCpp = new sipAmEvent(*a0);
93
-        }
94
-    }
95
-
96
-    if (sipCpp)
97
-        sipCpp->sipPySelf = sipSelf;
98
-
99
-    return sipCpp;
100
-}
101
-
102
-
103
-extern "C" {static PyObject *var_AmEvent_processed(PyObject *, PyObject *);}
104
-static PyObject *var_AmEvent_processed(PyObject *sipSelf,PyObject *sipPy)
105
-{
106
-   bool sipVal;
107
-    AmEvent *sipCpp = reinterpret_cast<AmEvent *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmEvent));
108
-
109
-    if (!sipCpp)
110
-        return NULL;
111
-
112
-    if (sipPy == NULL)
113
-    {
114
-        sipVal = sipCpp->processed;
115
-
116
-        sipPy = PyBool_FromLong(sipVal);
117
-
118
-        return sipPy;
119
-    }
120
-
121
-	sipVal = (bool)PyInt_AsLong(sipPy);
122
-
123
-    if (PyErr_Occurred() != NULL)
124
-    {
125
-        sipBadSetType(sipNm_py_sems_lib_AmEvent,sipNm_py_sems_lib_processed);
126
-        return NULL;
127
-    }
128
-
129
-    sipCpp->processed = sipVal;
130
-
131
-    Py_INCREF(Py_None);
132
-    return Py_None;
133
-}
134
-
135
-
136
-extern "C" {static PyObject *var_AmEvent_event_id(PyObject *, PyObject *);}
137
-static PyObject *var_AmEvent_event_id(PyObject *sipSelf,PyObject *sipPy)
138
-{
139
-   int sipVal;
140
-    AmEvent *sipCpp = reinterpret_cast<AmEvent *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmEvent));
141
-
142
-    if (!sipCpp)
143
-        return NULL;
144
-
145
-    if (sipPy == NULL)
146
-    {
147
-        sipVal = sipCpp->event_id;
148
-
149
-        sipPy = PyInt_FromLong(sipVal);
150
-
151
-        return sipPy;
152
-    }
153
-
154
-	sipVal = (int)PyInt_AsLong(sipPy);
155
-
156
-    if (PyErr_Occurred() != NULL)
157
-    {
158
-        sipBadSetType(sipNm_py_sems_lib_AmEvent,sipNm_py_sems_lib_event_id);
159
-        return NULL;
160
-    }
161
-
162
-    sipCpp->event_id = sipVal;
163
-
164
-    Py_INCREF(Py_None);
165
-    return Py_None;
166
-}
167
-
168
-PyMethodDef variables_AmEvent[] = {
169
-    {sipNm_py_sems_lib_processed, var_AmEvent_processed, 0, NULL},
170
-    {sipNm_py_sems_lib_event_id, var_AmEvent_event_id, 0, NULL},
171
-    {0, 0, 0, 0}
172
-};
173
-
174
-
175
-extern "C" {static void *forceConvertTo_AmEvent(PyObject *, int *);}
176
-static void *forceConvertTo_AmEvent(PyObject *valobj,int *iserrp)
177
-{
178
-    if (*iserrp || valobj == NULL)
179
-        return NULL;
180
-
181
-    if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmEvent))
182
-        return sipConvertToCpp(valobj,sipClass_AmEvent,iserrp);
183
-
184
-    sipBadClass(sipNm_py_sems_lib_AmEvent);
185
-
186
-    *iserrp = 1;
187
-
188
-    return NULL;
189
-}
190
-
191
-
192
-sipTypeDef sipType_py_sems_lib_AmEvent = {
193
-    0,
194
-    SIP_TYPE_SCC,
195
-    "py_sems_lib.AmEvent",
196
-    0,
197
-    {0, 0, 1},
198
-    0,
199
-    0,
200
-    0, 0,
201
-    0, 0,
202
-    variables_AmEvent,
203
-    init_AmEvent,
204
-    0,
205
-    0,
206
-    0,
207
-    0,
208
-    0,
209
-    0,
210
-    dealloc_AmEvent,
211
-    cast_AmEvent,
212
-    release_AmEvent,
213
-    forceConvertTo_AmEvent,
214
-    0,
215
-    0,
216
-    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
217
-    0
218
-};
219 0
deleted file mode 100644
... ...
@@ -1,36 +0,0 @@
1
-/*
2
- * Interface header file.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#ifndef _py_sems_libAmEvent_h
8
-#define _py_sems_libAmEvent_h
9
-
10
-#line 5 "AmAudio.sip"
11
-#include "../../../core/AmEvent.h"
12
-#line 13 "sippy_sems_libAmEvent.h"
13
-
14
-#define sipClass_AmEvent             sipModuleAPI_py_sems_lib.em_types[6]
15
-#define sipCast_AmEvent              sipType_py_sems_lib_AmEvent.td_cast
16
-#define sipForceConvertTo_AmEvent    sipType_py_sems_lib_AmEvent.td_fcto
17
-
18
-extern sipTypeDef sipType_py_sems_lib_AmEvent;
19
-
20
-
21
-class sipAmEvent : public AmEvent
22
-{
23
-public:
24
-    sipAmEvent(int);
25
-    sipAmEvent(const AmEvent&);
26
-    ~sipAmEvent();
27
-
28
-public:
29
-    sipWrapper *sipPySelf;
30
-
31
-private:
32
-    sipAmEvent(const sipAmEvent &);
33
-    sipAmEvent &operator = (const sipAmEvent &);
34
-};
35
-
36
-#endif
37 0
deleted file mode 100644
... ...
@@ -1,1024 +0,0 @@
1
-/*
2
- * Interface wrapper code.
3
- *
4
- * Generated by SIP 4.5.2 (4.5.2) on Thu Mar 29 00:29:43 2007
5
- */
6
-
7
-#include "sipAPIpy_sems_lib.h"
8
-#include "sippy_sems_libAmSipDialog.h"
9
-
10
-#include "sippy_sems_libstring.h"
11
-#include "sippy_sems_libAmSipDialog.h"
12
-#include "sippy_sems_libAmSipRequest.h"
13
-#include "sippy_sems_libAmSipReply.h"
14
-
15
-
16
-
17
-extern "C" {static PyObject *meth_AmSipDialog_getRoute(PyObject *, PyObject *);}
18
-static PyObject *meth_AmSipDialog_getRoute(PyObject *sipSelf,PyObject *sipArgs)
19
-{
20
-    sipTrace(SIP_TRACE_METHODS,"meth_AmSipDialog_getRoute()\n");
21
-
22
-    int sipArgsParsed = 0;
23
-
24
-    {
25
-        AmSipDialog *sipCpp;
26
-
27
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmSipDialog,&sipCpp))
28
-        {
29
-            string *sipRes;
30
-
31
-            sipRes = new string(sipCpp->getRoute());
32
-
33
-            PyObject *sipResObj = sipConvertFromMappedType(sipRes,sipMappedType_string,NULL);
34
-            delete sipRes;
35
-
36
-            return sipResObj;
37
-        }
38
-    }
39
-
40
-    /* Raise an exception if the arguments couldn't be parsed. */
41
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmSipDialog,sipNm_py_sems_lib_getRoute);
42
-
43
-    return NULL;
44
-}
45
-
46
-
47
-extern "C" {static PyObject *meth_AmSipDialog_setRoute(PyObject *, PyObject *);}
48
-static PyObject *meth_AmSipDialog_setRoute(PyObject *sipSelf,PyObject *sipArgs)
49
-{
50
-    sipTrace(SIP_TRACE_METHODS,"meth_AmSipDialog_setRoute()\n");
51
-
52
-    int sipArgsParsed = 0;
53
-
54
-    {
55
-        const string * a0;
56
-        int a0State = 0;
57
-        AmSipDialog *sipCpp;
58
-
59
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"BM1",&sipSelf,sipClass_AmSipDialog,&sipCpp,sipMappedType_string,&a0,&a0State))
60
-        {
61
-            sipCpp->setRoute(*a0);
62
-
63
-            sipReleaseMappedType(const_cast<string *>(a0),sipMappedType_string,a0State);
64
-
65
-            Py_INCREF(Py_None);
66
-            return Py_None;
67
-        }
68
-    }
69
-
70
-    /* Raise an exception if the arguments couldn't be parsed. */
71
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmSipDialog,sipNm_py_sems_lib_setRoute);
72
-
73
-    return NULL;
74
-}
75
-
76
-
77
-extern "C" {static PyObject *meth_AmSipDialog_getUACTransPending(PyObject *, PyObject *);}
78
-static PyObject *meth_AmSipDialog_getUACTransPending(PyObject *sipSelf,PyObject *sipArgs)
79
-{
80
-    sipTrace(SIP_TRACE_METHODS,"meth_AmSipDialog_getUACTransPending()\n");
81
-
82
-    int sipArgsParsed = 0;
83
-
84
-    {
85
-        AmSipDialog *sipCpp;
86
-
87
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmSipDialog,&sipCpp))
88
-        {
89
-            bool sipRes;
90
-
91
-            sipRes = sipCpp->getUACTransPending();
92
-
93
-            return PyBool_FromLong(sipRes);
94
-        }
95
-    }
96
-
97
-    /* Raise an exception if the arguments couldn't be parsed. */
98
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmSipDialog,sipNm_py_sems_lib_getUACTransPending);
99
-
100
-    return NULL;
101
-}
102
-
103
-
104
-extern "C" {static PyObject *meth_AmSipDialog_getStatus(PyObject *, PyObject *);}
105
-static PyObject *meth_AmSipDialog_getStatus(PyObject *sipSelf,PyObject *sipArgs)
106
-{
107
-    sipTrace(SIP_TRACE_METHODS,"meth_AmSipDialog_getStatus()\n");
108
-
109
-    int sipArgsParsed = 0;
110
-
111
-    {
112
-        AmSipDialog *sipCpp;
113
-
114
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmSipDialog,&sipCpp))
115
-        {
116
-            int sipRes;
117
-
118
-            sipRes = sipCpp->getStatus();
119
-
120
-            return PyInt_FromLong(sipRes);
121
-        }
122
-    }
123
-
124
-    /* Raise an exception if the arguments couldn't be parsed. */
125
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmSipDialog,sipNm_py_sems_lib_getStatus);
126
-
127
-    return NULL;
128
-}
129
-
130
-
131
-extern "C" {static PyObject *meth_AmSipDialog_getContactHdr(PyObject *, PyObject *);}
132
-static PyObject *meth_AmSipDialog_getContactHdr(PyObject *sipSelf,PyObject *sipArgs)
133
-{
134
-    sipTrace(SIP_TRACE_METHODS,"meth_AmSipDialog_getContactHdr()\n");
135
-
136
-    int sipArgsParsed = 0;
137
-
138
-    {
139
-        AmSipDialog *sipCpp;
140
-
141
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmSipDialog,&sipCpp))
142
-        {
143
-            string *sipRes;
144
-
145
-            sipRes = new string(sipCpp->getContactHdr());
146
-
147
-            PyObject *sipResObj = sipConvertFromMappedType(sipRes,sipMappedType_string,NULL);
148
-            delete sipRes;
149
-
150
-            return sipResObj;
151
-        }
152
-    }
153
-
154
-    /* Raise an exception if the arguments couldn't be parsed. */
155
-    sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmSipDialog,sipNm_py_sems_lib_getContactHdr);
156
-
157
-    return NULL;
158
-}
159
-
160
-
161
-extern "C" {static PyObject *meth_AmSipDialog_updateStatus(PyObject *, PyObject *);}
162
-static PyObject *meth_AmSipDialog_updateStatus(PyObject *sipSelf,PyObject *sipArgs)
163
-{
164
-    sipTrace(SIP_TRACE_METHODS,"meth_AmSipDialog_updateStatus()\n");
165
-
166
-    int sipArgsParsed = 0;
167
-
168
-    {
169
-        const AmSipRequest * a0;
170
-        AmSipDialog *sipCpp;
171
-
172
-        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJA",&sipSelf,sipClass_AmSipDialog,&sipCpp,sipClass_AmSipRequest,&a0))
173
-        {
174
-            sipCpp->updateStatus(*a0);
175