-
Notifications
You must be signed in to change notification settings - Fork 6
/
LoudtalksMesh.idl
2407 lines (2172 loc) · 67.6 KB
/
LoudtalksMesh.idl
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
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* \mainpage
* Zello for Work Client SDK for Windows allows to integrate
* your Windows application or web-page with full-featured Zello for Work client application.
* Key part of this SDK is ActiveX control which is as functional as standalone Zello for Work client application.
* You can use Visual C++, Visual Basic, Visual C# or any other programming language supporting hosting of ActiveX controls.
* For information on Zello server API please check http://zello.com/api/.
*
* @link Enums Enumeration Type Documentation@endlink
*
* @link Interfaces Interface Type Documentation@endlink
*/
/**
* \defgroup Enums Enums
* \defgroup Interfaces Interfaces
*/
#include "olectl.h"
import "oaidl.idl";
import "ocidl.idl";
/**
* \ingroup Enums
* @{
* Network signed-in status.
*/
typedef [v1_enum]
enum NETWORK_STATUS
{
/** Offline. */
NSOFFLINE = 0,
/** Signed in. */
NSONLINE = 1,
/** Signing in. */
NSSIGNINGIN = 2,
/** Signing out. */
NSSIGNINGOUT = 3
}
/// @cond NETWORK_STATUS
NETWORK_STATUS
/// @endcond
;
/*@}*/
/**
* \ingroup Enums
* @{
* Online status.
*/
typedef [v1_enum]
enum ONLINE_STATUS
{
/** Offline. */
OSOFFLINE = 0,
/** Available. */
OSAVAILABLE = 1,
/** Busy. */
OSBUSY = 2,
/** Away. */
OSAWAY = 3,
/** Headphones. */
OSHEADPHONES = 4,
/** Connecting. Only reported for channels. */
OSCONNECTING = 5,
/** Disconnected now, can receive offline message. */
OSSTANDBY = 6,
/** Contact deleted. */
OSUNKNOWN = 7
}
/// @cond ONLINE_STATUS
ONLINE_STATUS
/// @endcond
;
/*@}*/
/**
* \ingroup Enums
* @{
* Client errors.
*/
typedef [v1_enum]
enum CLIENT_ERROR
{
/** Ok. */
CL_NoError = 0,
/** Unknown error. */
CL_UnknownError = 1,
/** Invalid credentials. */
CL_InvalidCredentials,
/** Existing username. */
CL_ExistingUsername,
/** Invalid username. */
CL_InvalidUsername,
/** Empty username. */
CL_EmptyUsername,
/** Specified name already in use. */
CL_ExistingChannelName,
/** Sign in server error. */
CL_SignInServerError,
/** Sign in server unavailable. */
CL_SignInServerUnavailable,
/** Supernode error. */
CL_SuperNodeError,
/** Old version. */
CL_OldVersion,
/** Network suspended. */
CL_NetworkSuspended,
/** Reconnecting. */
CL_Reconnecting,
/** Kicked. */
CL_Kicked,
/** Sign up server error. */
CL_SignUpServerError,
/** Sign up server unavailable. */
CL_SignUpServerUnavailable,
/** Not used in business version. */
CL_SignUpDailyRateExceeded,
/** Not used in business version. */
CL_SignUpWeeklyRateExceeded,
/** Not used in business version. */
CL_SignUpMonthlyRateExceeded,
/** Add contact offline. */
CL_AddContactOffline,
/** Add contact error. */
CL_AddContactError,
/** Add contact exists. */
CL_AddContactExists,
/** Channel not found. */
CL_ChannelNotFound,
/** Change password: offline. */
CL_ChangePwdOffline,
/** Change password: invalid password. */
CL_ChangePwdInvalidPassword,
/** Permission denied. */
CL_NoPermission,
/** Proxy unavailable. */
CL_ProxyUnavailable,
/** Proxy authorization error. */
CL_ProxyAuthError,
/** Sign in cancelled. */
CL_SignInCancelled,
/** License error. */
CL_LicenseError,
/** License expired. */
CL_LicenseExpired,
/** Wrong network. */
CL_WrongNetwork,
/** Contact list error. */
CL_ContactListError,
/** No connection. */
CL_NoConnection,
/** Connection lost. */
CL_ConnectionLost,
/** Action pending. */
CL_Pending,
/** Action cancelled. */
CL_Cancelled,
/** Too many bad login attempts. */
CL_BruteForce,
/** Not used in business version. */
CL_Banned,
/** Can't establish secure connection. */
CL_TlsRequired
}
/// @cond CLIENT_ERROR
CLIENT_ERROR
/// @endcond
;
/*@}*/
/**
* \ingroup Enums
* @{
* Contact type.
*/
typedef [v1_enum]
enum CONTACT_TYPE
{
/** User. */
CTUSER = 0,
/** Group. */
CTGROUP = 1,
/** Channel. */
CTCHANNEL = 2
}
/// @cond CONTACT_TYPE
CONTACT_TYPE
/// @endcond
;
/*@}*/
/*@}*/
/**
* \ingroup Enums
* @{
* Message type.
*/
typedef [v1_enum]
enum MESSAGE_TYPE
{
/** Audio. */
MTAUDIO = 0,
/** Call alert */
MTALERT = 1,
/** Shared image */
MTIMAGE = 2,
/** Shared location */
MTLOCATION = 3,
/** Text message */
MTTEXT = 4
}
/// @cond MESSAGE_TYPE
MESSAGE_TYPE
/// @endcond
;
/*@}*/
/**
* \ingroup Enums
* @{
* Setting ids.
*/
typedef [v1_enum]
enum SETTING_ID
{
/** Get module version (String, readonly)*/
ST_VERSION = 0,
/** "WriteLog" Write diagnostic log (Boolean)*/
ST_WRITE_LOG = 1,
/** "EnablePolyphony" Audio mix mode (Boolean)*/
ST_CHORUS_MODE = 2,
/** "PlaybackDevice" Audio playback device id (String)*/
ST_AUD_DEV_PLAYBACK = 10,
/** "RecordingDevice" Audio recording device id (String)*/
ST_AUD_DEV_RECORDING = 11,
/** Playback audio device volume (integer, [0..100]). */
ST_AUD_PLAYBACK_VOLUME = 12,
/** Recording audio device volume (integer, [0..100]). */
ST_AUD_RECORDING_VOLUME = 13,
/** "PlaybackAmplifierGain" Playback audio device amplification value (integer, [-20..20]dB). */
ST_AUD_PLAYBACK_AMPL = 14,
/** "RecordAmplifierGain" Recording audio device amplification value (integer, [-20..20]dB). */
ST_AUD_RECORDING_AMPL = 15,
/** "Denoise" Noise supression (Boolean). */
ST_AUD_NOISE_SUPP = 16,
/* "AutoawayEnabled" Change status to away when idle (Boolean)*/
ST_IFC_AUTO_AWAY = 20,
/* "Autoaway" Idle timeout (Integer, minutes)*/
ST_IFC_AUTO_AWAY_TIME = 21,
/* "NotifyIncoming" Display notification while receiving message (Boolean)*/
ST_IFC_INC_NOTIFY = 22,
/* "NotifyOutgoing" Display notification while &sending message (Boolean)*/
ST_IFC_OUT_NOTIFY = 23,
/* "NotificationLeft" Notification bar left position (Integer)*/
ST_IFC_NOTIFY_LEFT = 24,
/* "NotificationTop" Notification bar top position (Integer)*/
ST_IFC_NOTIFY_TOP = 25,
/* "VibrateWhenBusy" Vibrate when Away or Busy (Boolean)*/
ST_IFC_VIBRATE_BUSY = 26,
/* "VibrateOnCTS" Vibrate when ready to send (Boolean)*/
ST_IFC_VIBRATE_CTS = 27,
/* "ImagesRestricted" Receive images from contacts and channels (Boolean)*/
ST_IFC_RCV_IMAGES = 28,
/* "language" Language file name (String)*/
ST_IFC_LANG = 29,
/* "TextingAllowed" Texting is allowed/forbidden for this zello network (Boolean)*/
ST_IFC_TXT_ALLOWED = 30,
/** "VoxEnabled" Enable VOX (Boolean)*/
ST_VOX_ENABLE = 40,
/** "ActivationThreshold" Activation threshold (Integer, [-80..0]dB)*/
ST_VOX_ACTIVATION = 41,
/** "DeactivationThreshold" De-activation threshold (Integer, [-80..0]dB)*/
ST_VOX_DEACTIVATION = 42,
/** "TriggerTime" Trigger time (Integer, ms)*/
ST_VOX_TRIGGER_TIME = 43,
/** "RelaxationTime" Relaxation time (Integer, ms)*/
ST_VOX_RELAX_TIME = 44,
/** "SaveVoxState" Save VOX contact between sessions (Boolean)*/
ST_VOX_SAVE_STATE = 45,
/** "HotKeySpeak" Push-to-talk (Integer,keycode)*/
ST_CTRL_PTT_KEYCODE = 50,
/** "HotKeyLock" Handsfree (Integer,keycode)*/
ST_CTRL_LOCK_KEYCODE = 51,
/** "HotKeyReplay" Repeat last message (Integer,keycode)*/
ST_CTRL_REPLAY_KEYCODE = 52,
/** "HotKeyChorus" Switch mixing (Integer,keycode)*/
ST_CTRL_SWITCH_CHORUS = 53,
/** "WakeFromIdleSoundPath" New conversation alert (String,path)*/
ST_CTRL_WAKE_SOUND = 54,
/** "IncomingTransmissionSoundPath" Incoming message alert (String,path)*/
ST_CTRL_INC_SOUND = 55,
/** "CTSSoundPath" Clear to send alert (String,path)*/
ST_CTRL_CTS_SOUND = 56,
/** "OverSoundPath" Incoming message ended alert (String,path)*/
ST_CTRL_INC_OVER_SOUND = 57,
/** "ErrorSoundPath" Connection error alert (String,path)*/
ST_CTRL_ERROR_SOUND = 58,
/** "PttUpSoundPath" Outgoing message ended alert (String,path)*/
ST_CTRL_OUT_OVER_SOUND = 59,
/** "CallAlertSoundPath" Call alert (String,path)*/
ST_CTRL_ALERT_SOUND = 60,
/** "SharedImageSoundPath" Shared image alert (String,path)*/
ST_CTRL_IMAGE_SOUND = 61,
/** "DisableTls" Disable TLS (Boolean)*/
ST_NTW_NO_TLS = 70,
/** "UseOnlyTcp" Use only TCP connection (Boolean)*/
ST_NTW_TCP_ONLY = 71,
/** "UdpKeepAlive" UDP keep-alive period (Integer,ms)*/
ST_NTW_RLKA = 72,
/** "KeepAlive" Keep-alive period (Integer,ms)*/
ST_NTW_SNKA = 73,
/** "ProxyEnable" Use proxy server (Boolean)*/
ST_NTW_USE_PROXY = 74,
/** "ProxyType" Use HTTP(S) or SOCKS5 proxy server (String, HTTP(S) or SOCKS5)*/
ST_NTW_PROXY_TYPE = 75,
/** "ProxyServer" Proxy server and port (String,'ip:port')*/
ST_NTW_PROXY_SERVER = 76,
/** "ProxyEnableAuth" Turn on proxy authentication (Boolean)*/
ST_NTW_USE_PROXY_AUTH = 77,
/** "ProxyAuthUsername" Turn on proxy authentication (Boolean)*/
ST_NTW_PROXY_UNAME = 78,
/** "ProxyAuthPassword" Turn on proxy authentication (Boolean)*/
ST_NTW_PROXY_PWD = 79,
/** "CodecPacketsPerSecond" Codec packets per second (Integer,[5, 50])*/
ST_CDC_PACKETS = 90,
/** "CodecQuality" Codec quality (Integer,[0, 10])*/
ST_CDC_QUALITY = 91,
/** "CodecComplexity" Codec Complexity (Integer,[0, 10])*/
ST_CDC_COMPLEXITY = 92,
/** "CodecPacketLossRate" Codec packet loss rate (Integer,[0, 100])*/
ST_CDC_PACKET_LOSS_RATE = 93,
/** "CodecEnableVbr" Enable VBR (Boolean)*/
ST_CDC_ENABLE_VBR = 94
}
/// @cond SETTING_ID
SETTING_ID
/// @endcond
;
/*@}*/
/// @cond PTT_EVENTS
typedef [v1_enum]
enum PTT_EVENTS
{
DISPID_ON_SIGN_IN_STARTED = 0x00000001,
DISPID_ON_SIGN_IN_SUCCEEDED,
DISPID_ON_SIGN_IN_FAILED,
DISPID_ON_SIGN_OUT_STARTED = 0x00000500,
DISPID_ON_SIGN_OUT_COMPLETE,
DISPID_ON_SIGN_IN_REQUESTED = 0x00000A00,
DISPID_ON_GET_CAN_SIGN_IN,
DISPID_ON_CONTACT_LIST_CHANGED,
DISPID_ON_HISTORY_CHANGED = 0x00000C00,
DISPID_ON_MESSAGE_IN_BEGIN = 0x00000F00,
DISPID_ON_MESSAGE_IN_END,
DISPID_ON_MESSAGE_OUT_BEGIN,
DISPID_ON_MESSAGE_OUT_END,
DISPID_ON_MESSAGE_OUT_ERROR,
DISPID_ON_AUDIO_MESSAGE_IN_START,
DISPID_ON_AUDIO_MESSAGE_IN_STOP,
DISPID_ON_PLAYER_AUDIO_MESSAGE_START = 0x00001000,
DISPID_ON_PLAYER_AUDIO_MESSAGE_STOP,
DISPID_ON_PLAYER_AUDIO_MESSAGE_PROGRESS,
} PTT_EVENTS;
/// @endcond
/// @cond FORWARD_DECLARATIONS
interface IContact;
interface IContacts;
interface IHistory;
interface IAudioPlayer;
interface IAudioMessagePlayback;
interface IAudioMessageRecord;
/// @endcond
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(3A50D50E-A39D-4677-85E3-61E458ABCC80),
dual,
oleautomation,
helpstring("IMessage Interface"),
pointer_default(unique)
]
/**
* Abstract interface representing a message.
*/
interface IMessage : IDispatch
{
/**
* Get message ID.
* ID uniquely identifies a message.
* \param pbstrVal Return value.
*/
[propget, id(1001), helpstring("property Id")] HRESULT Id([out, retval] BSTR* pbstrVal);
/**
* Get message type.
* \param pVal Return value.
*/
[propget, id(1002), helpstring("property Type")] HRESULT Type([out, retval] MESSAGE_TYPE* pVal);
/**
* Get message creation date.
* \param pdVal Return value.
*/
[propget, id(1003), helpstring("property CreationTime")] HRESULT CreationTime([out, retval] DATE* pdVal);
/**
* Check whether message is incoming or outgoing.
* \param pbVal Return value.
*/
[propget, id(1004), helpstring("property Incoming")] HRESULT Incoming([out, retval] VARIANT_BOOL* pbVal);
/**
* Mark message is read or unread.
* \param bVal New value.
*/
[propput, id(1005), helpstring("property Read")] HRESULT Read([in] VARIANT_BOOL bVal);
/**
* Check whether message is incoming or outgoing.
* \param pbVal Return value.
*/
[propget, id(1005), helpstring("property Read")] HRESULT Read([out, retval] VARIANT_BOOL* pbVal);
/**
* Delete message from history.
* Once message is deleted, corresponding IMessage object can't be used any more.
*/
[id(1006), helpstring("method Delete")] HRESULT Delete();
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(F4CCB942-F285-4646-A116-F6301C459318),
dual,
oleautomation,
helpstring("IAlertMessage Interface"),
pointer_default(unique)
]
/**
* Interface representing call alert message.
*/
interface IAlertMessage : IMessage
{
/**
* Get alert text.
* \param pbstrVal Return value.
*/
[propget, id(2001), helpstring("property Text")] HRESULT Text([out, retval] BSTR* pbstrVal);
/**
* Get alert external id.
* \param pbstrVal Return value.
*/
[propget, id(2002), helpstring("property ExternalId")] HRESULT ExternalId([out, retval] BSTR* pbstrVal);
/**
* Get alert sender.
* If alert has been received from a channel or a group then 'Author' property can be used to get alert author.
* \param ppVal Return value.
*/
[propget, id(2003), helpstring("property Sender")] HRESULT Sender([out, retval] IContact** ppVal);
/**
* Get alert author for messages received from channels and groups.
* No author is returned for alerts received from users.
* \param ppVal Return value.
*/
[propget, id(2004), helpstring("property Author")] HRESULT Author([out, retval] IContact** ppVal);
/**
* Get full author name.
* \param pbstrVal Return value.
*/
[propget, id(2005), helpstring("property FullName")] HRESULT FullName([out, retval] BSTR* pbstrVal);
/**
* Get crosslink.
* \param pbstrVal Return value.
*/
[propget, id(2006), helpstring("property Crosslink")] HRESULT Crosslink([out, retval] BSTR* pbstrVal);
/**
* Get name of the author from crosslink network.
* \param pbstrVal Return value.
*/
[propget, id(2007), helpstring("property CrosslinkAuthor")] HRESULT CrosslinkAuthor([out, retval] BSTR* pbstrVal);
/**
* Get display name of the author from crosslink network.
* \param pbstrVal Return value.
*/
[propget, id(2008), helpstring("property CrosslinkAuthorDisplayName")] HRESULT CrosslinkAuthorDisplayName([out, retval] BSTR* pbstrVal);
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(BB89FA86-BC29-4953-94FC-1F8830858BEB),
dual,
oleautomation,
helpstring("ISharedImage Interface"),
pointer_default(unique)
]
/**
* Interface representing shared image.
*/
interface ISharedImage : IMessage
{
/**
* Save shared image to specified path.
* \param bstrFilePath Image will be saved to the specified folder and name.
*/
[id(2001), helpstring("method SaveToFile")] HRESULT SaveToFile([in] BSTR bstrFilePath);
/**
* Save image to the valid IStream object.
* \param pStream Return value.
*/
[id(2002), helpstring("method SaveToStream")] HRESULT SaveToStream([in] IStream* pStream);
/**
* Get shared image external id.
* \param pbstrVal Return value.
*/
[propget, id(2003), helpstring("property ExternalId")] HRESULT ExternalId([out, retval] BSTR* pbstrVal);
/**
* Get message sender.
* If message sender is a channel or a group then IAudioInMessage::Author property can be used to get message author.
* \param ppVal Return value.
*/
[propget, id(2004), helpstring("property Sender")] HRESULT Sender([out, retval] IContact** ppVal);
/**
* Get message author for messages that come from channels and groups.
* No author is returned for messages that come from users.
* \param ppVal Return value.
*/
[propget, id(2005), helpstring("property Author")] HRESULT Author([out, retval] IContact** ppVal);
/**
* Get full author name.
* \param pbstrVal Return value.
*/
[propget, id(2006), helpstring("property FullName")] HRESULT FullName([out, retval] BSTR* pbstrVal);
/**
* Get crosslink.
* \param pbstrVal Return value.
*/
[propget, id(2007), helpstring("property Crosslink")] HRESULT Crosslink([out, retval] BSTR* pbstrVal);
/**
* Get name of the author from crosslink network.
* \param pbstrVal Return value.
*/
[propget, id(2008), helpstring("property CrosslinkAuthor")] HRESULT CrosslinkAuthor([out, retval] BSTR* pbstrVal);
/**
* Get display name of the author from crosslink network.
* \param pbstrVal Return value.
*/
[propget, id(2009), helpstring("property CrosslinkAuthorDisplayName")] HRESULT CrosslinkAuthorDisplayName([out, retval] BSTR* pbstrVal);
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(A67C7BB9-DFBB-4efe-9F2E-03019273B772),
dual,
oleautomation,
helpstring("ISharedLocation Interface"),
pointer_default(unique)
]
/**
* Interface representing shared location.
*/
interface ISharedLocation : IMessage
{
/**
* Get the reverse geocoded location.
* \param pbstrVal Return value.
*/
[propget, id(2001), helpstring("property ReverseGeolocation")] HRESULT ReverseGeolocation([out, retval] BSTR* pbstrVal);
/**
* Get shared location latitude.
* \param pdVal Return value.
*/
[propget, id(2002), helpstring("property Latitude")] HRESULT Latitude([out, retval] double* pdVal);
/**
* Get shared location longitude.
* \param pdVal Return value.
*/
[propget, id(2003), helpstring("property Longitude")] HRESULT Longitude([out, retval] double* pdVal);
/**
* Get shared location accuracy.
* \param pdVal Return value.
*/
[propget, id(2004), helpstring("property Accuracy")] HRESULT Accuracy([out, retval] double* pdVal);
/**
* Get alert external id.
* \param pbstrVal Return value.
*/
[propget, id(2005), helpstring("property ExternalId")] HRESULT ExternalId([out, retval] BSTR* pbstrVal);
/**
* Get shared location sender.
* \param ppVal Return value.
*/
[propget, id(2006), helpstring("property Sender")] HRESULT Sender([out, retval] IContact** ppVal);
/**
* Get shared location author for messages received from channels and groups.
* No author is returned for shared locations received from users.
* \param ppVal Return value.
*/
[propget, id(2007), helpstring("property Author")] HRESULT Author([out, retval] IContact** ppVal);
/**
* Get full author name.
* \param pbstrVal Return value.
*/
[propget, id(2008), helpstring("property FullName")] HRESULT FullName([out, retval] BSTR* pbstrVal);
/**
* Get crosslink.
* \param pbstrVal Return value.
*/
[propget, id(2009), helpstring("property Crosslink")] HRESULT Crosslink([out, retval] BSTR* pbstrVal);
/**
* Get name of the author from crosslink network.
* \param pbstrVal Return value.
*/
[propget, id(2010), helpstring("property CrosslinkAuthor")] HRESULT CrosslinkAuthor([out, retval] BSTR* pbstrVal);
/**
* Get display name of the author from crosslink network.
* \param pbstrVal Return value.
*/
[propget, id(2011), helpstring("property CrosslinkAuthorDisplayName")] HRESULT CrosslinkAuthorDisplayName([out, retval] BSTR* pbstrVal);
/**
* Not implemented.
* \param pbstrVal Return value.
*/
[propget, id(2012), helpstring("property Url")] HRESULT Url([out, retval] BSTR* pbstrVal);
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(E0434039-64D0-4849-A62A-E780D3EA9E57),
dual,
oleautomation,
helpstring("IAudioMessage Interface"),
pointer_default(unique)
]
/**
* Abstract interface representing audio message.
*/
interface IAudioMessage : IMessage
{
/**
* Get message duration, in milliseconds.
* \param piVal Return value.
*/
[propget, id(2001), helpstring("property Duration")] HRESULT Duration([out, retval] int* piVal);
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(28987B75-A974-46a7-9503-624FD0BF7C69),
dual,
oleautomation,
helpstring("IAudioInMessage Interface"),
pointer_default(unique)
]
/**
* Interface representing incoming audio message.
*/
interface IAudioInMessage : IAudioMessage
{
/**
* Get message sender.
* If message sender is a channel or a group then IAudioInMessage::Author property can be used to get message author.
* \param ppVal Return value.
*/
[propget, id(1), helpstring("property Sender")] HRESULT Sender([out, retval] IContact** ppVal);
/**
* Get message author for messages that come from channels and groups.
* No author is returned for messages that come from users.
* \param ppVal Return value.
*/
[propget, id(2), helpstring("property Author")] HRESULT Author([out, retval] IContact** ppVal);
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(A2990A6C-F294-4d7f-88C9-99E384102CE4),
dual,
oleautomation,
helpstring("IAudioInMessage2 Interface"),
pointer_default(unique)
]
/**
* Interface allows to get the external id
*/
interface IAudioInMessage2 : IAudioInMessage
{
/**
* Get external id.
* \param pbstrVal Return value.
*/
[propget, id(100), helpstring("property ExternalId")] HRESULT ExternalId([out, retval] BSTR* pbstrVal);
/**
* Get crosslink.
* \param pbstrVal Return value.
*/
[propget, id(101), helpstring("property Crosslink")] HRESULT Crosslink([out, retval] BSTR* pbstrVal);
/**
* Get name of the author from crosslink network.
* \param pbstrVal Return value.
*/
[propget, id(102), helpstring("property CrosslinkAuthor")] HRESULT CrosslinkAuthor([out, retval] BSTR* pbstrVal);
/**
* Get display name of the author from crosslink network.
* \param pbstrVal Return value.
*/
[propget, id(103), helpstring("property CrosslinkAuthorDisplayName")] HRESULT CrosslinkAuthorDisplayName([out, retval] BSTR* pbstrVal);
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(D77F9C22-8689-4a75-851C-9D9C64E23D67),
dual,
oleautomation,
helpstring("IAudioOutMessage Interface"),
pointer_default(unique)
]
/**
* Interface representing outgoing audio message.
*/
interface IAudioOutMessage : IAudioMessage
{
/**
* Get message recipients.
* \param ppVal Return value.
*/
[propget, id(1), helpstring("property Recipients")] HRESULT Recipients([out, retval] IContacts** ppVal);
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(0EA8C648-D310-4b62-ABFC-00C71A39DA82),
dual,
oleautomation,
helpstring("IAudioInMessage2 Interface"),
pointer_default(unique)
]
/**
* Interface allows to get the external id
*/
interface IAudioOutMessage2 : IAudioOutMessage
{
/**
* Get external id.
* \param pbstrVal Return value.
*/
[propget, id(100), helpstring("property ExternalId")] HRESULT ExternalId([out, retval] BSTR* pbstrVal);
};
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(034EFC0A-35CE-4fef-96EB-7A44A3BE5461),
dual,
oleautomation,
helpstring("IContact Interface"),
pointer_default(unique)
]
/**
* Abstract interface representing a contact.
*/
interface IContact : IDispatch
{
/**
* Get contact ID.
* Contact ID uniquely identifies a contact.
* \param pbstrVal Return value.
*/
[propget, id(1001), helpstring("property Id")] HRESULT Id([out, retval] BSTR* pbstrVal);
/**
* Get contact type.
* \param pVal Return value.
*/
[propget, id(1002), helpstring("property Type")] HRESULT Type([out, retval] CONTACT_TYPE* pVal);
/**
* Get contact name.
* \param pbstrVal Return value.
*/
[propget, id(1003), helpstring("property Name")] HRESULT Name([out, retval] BSTR* pbstrVal);
/**
* Get full contact name.
* \param pbstrVal Return value.
*/
[propget, id(1004), helpstring("property FullName")] HRESULT FullName([out, retval] BSTR* pbstrVal);
/**
* Get contact description.
* \param pbstrVal Return value.
*/
[propget, id(1005), helpstring("property Description")] HRESULT Description([out, retval] BSTR* pbstrVal);
/**
* Get contact status.
* \param pVal Return value.
*/
[propget, id(1006), helpstring("property Status")] HRESULT Status([out, retval] ONLINE_STATUS* pVal);
/**
* Get contact's message history.
* \param ppVal Return value.
*/
[propget, id(1007), helpstring("property History")] HRESULT History([out, retval] IHistory** ppVal);
/**
* Enable/disable muted mode for the contact.
* \param bVal New value.
*/
[propput, id(1008), helpstring("property Muted")] HRESULT Muted([in] VARIANT_BOOL bVal);
/**
* Get contact mute status.
* \param pbVal Return value.
*/
[propget, id(1008), helpstring("property Muted")] HRESULT Muted([out, retval] VARIANT_BOOL* pbVal);
};
/*@}*/
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(E632F6CA-69E6-43a7-ADE1-331BB33A72F1),
dual,
oleautomation,
nonextensible,
helpstring("IUser Interface"),
pointer_default(unique)
]
/**
* IUser interface allows to read user properties.
*/
interface IUser : IContact
{
/**
* Get user custom status text.
* \param pbstrVal Return value.
*/
[propget, id(1), helpstring("property CustomStatusText")] HRESULT CustomStatusText([out, retval] BSTR* pbstrVal);
};
/*@}*/
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(2692F22D-D7AE-4cfa-8B1F-780CDF850EC1),
dual,
oleautomation,
helpstring("IUserEx Interface"),
pointer_default(unique)
]
/**
* Interface IUser2 provides some extra contact capabilities.
*/
interface IUser2 : IUser
{
/**
* Check image support.
* \param pbVal Return value.
*/
[propget, id(2000), helpstring("property CanReceiveImage")] HRESULT CanReceiveImage([out, retval] VARIANT_BOOL* pbVal);
/**
* Check texting support.
* \param pbVal Return value.
*/
[propget, id(2001), helpstring("property CanReceiveText")] HRESULT CanReceiveText([out, retval] VARIANT_BOOL* pbVal);
/**
* Check geolocation sharing support.
* \param pbVal Return value.
*/
[propget, id(2002), helpstring("property CanReceiveGeolocation")] HRESULT CanReceiveGeolocation([out, retval] VARIANT_BOOL* pbVal);
/**
* Get contact new messages count
* \param puiNewMessagesCount Return value.
*/
[propget, id(2010), helpstring("property NewMessagesCount")] HRESULT NewMessagesCount([out, retval] UINT* puiNewMessagesCount);
};
/*@}*/
/**
* \ingroup Interfaces
* @{
*/
[
object,
uuid(087027E3-181F-423E-AEEC-2ED93967AF4B),
dual,
oleautomation,
nonextensible,
helpstring("IGroup Interface"),
pointer_default(unique)
]
/**
* IGroup interface allows to read group properties.
*/
interface IGroup : IContact
{
/**
* Get number of contacts in group.
* \param piVal Return value.
*/
[propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] int* piVal);
/**
* Get existing contact by index.
* Groups only contain users.
* \param iIndex Contact index.
* \param ppContact Return value.
*/
[propget, id(2), helpstring("property Item")] HRESULT Item([in] int iIndex, [out, retval] IContact** ppContact);