Mobile SDK for Windows Apps2.0
Transforming Windows apps into Mobile apps
|
00001 00027 #pragma once 00028 00029 #include <cmp.h> 00030 00031 #include "Buttons.h" 00032 00039 [ 00040 dispinterface, 00041 uuid("E46798A9-0613-4197-A011-B5624EE681FE"), 00042 helpstring("Citrix Mobility Events interface") 00043 ] 00044 __interface ICMPEvents 00045 { 00046 [id(0x81)] HRESULT SessionStateChanged([in]CMP_SESSION_STATE SessState); 00047 [id(0x82)] HRESULT ChannelStateChanged([in]CMP_CHANNEL_STATE ChnlState); 00048 [id(0x83)] HRESULT OrientationChanged([in]CMPRESULT rc, 00049 [in]CMP_ORIENTATION_POSITION DeviceOrientation, 00050 [in]CMP_ORIENTATION_POSITION AppOrientation, 00051 [in]INT16 OrientationFlags); 00052 [id(0x84)] HRESULT PictureTaken([in]CMPRESULT rc, [in]CMP_UNIQUE_ID PictureID, [in]CMP_IMAGE_FORMAT Format, 00053 [in]INT32 PictureSize, [in]BSTR Filename); 00054 [id(0x85)] HRESULT SMSStarted([in]CMPRESULT rc, [in]CMP_UNIQUE_ID MsgId); 00055 [id(0x87)] HRESULT ButtonPressed([in]CMP_BUTTON_ID Button); 00056 00057 [id(0x8A)] HRESULT DisplaySettingsChanged([in]INT16 MetricsFlags, 00058 [in]INT32 PixelWidth, [in]INT32 PixelHeight, 00059 [in]INT16 ColorDepth, [in]INT32 XPixelsPerInch, [in]INT32 YPixelsPerInch, 00060 [in]CMP_ORIENTATION_POSITION DeviceOrientation, 00061 [in]INT32 WidthMilliInches, [in]INT32 HeightMilliInches, 00062 [in]INT32 NormalizedDPI); 00063 00064 [id(0x8B)] HRESULT ScrollModeChanged([in]CMPRESULT rc, [in]CMP_SCROLL_MODE ScrollMode); 00065 [id(0x8C)] HRESULT KeyboardStateChanged([in]CMPRESULT rc, [in]CMP_KEYBOARD_TYPE KybdType, [in]INT16 KybdFlags, 00066 [in]CMP_KEYBOARD_AUTOCAPS KybdAutoCaps, [in]CMP_KEYBOARD_RETURNKEY KybdReturnKey); 00067 00068 [id(0x8E)] HRESULT ViewportOriginChanged([in]CMPRESULT rc, [in]INT32 xLeft, [in]INT32 yTop); 00069 [id(0x8F)] HRESULT ButtonTargetChanged([in]CMPRESULT rc, [in]CMP_BUTTON_ID Button, [in]CMP_BUTTON_TARGET ButtonTarget); 00070 [id(0x90)] HRESULT ControlStateChanged([in]CMPRESULT rc, [in]INT16 ControlState); 00071 [id(0x91)] HRESULT PhoneCallStarted([in]CMPRESULT rc, [in]CMP_UNIQUE_ID CallId); 00072 [id(0x94)] HRESULT UserNotified([in]CMPRESULT rc, [in]CMP_UNIQUE_ID NotificationId); 00073 [id(0x95)] HRESULT CameraPictureRemoved([in]CMPRESULT rc, [in]CMP_UNIQUE_ID pictureId); 00074 [id(0x96)] HRESULT EventFilterChanged([in]CMPRESULT rc, [in]CMP_EVENT_ID EventId, [in]INT16 FilterFlags); 00075 [id(0x97)] HRESULT PickerControlStateChanged([in]CMP_UNIQUE_ID ControlId, [in]INT16 PickerFlags, [in]CMPRESULT result, [in]INT16 SelectedItemIndex); 00076 [id(0x98)] HRESULT ViewportChanged([in]CMPRESULT rc, [in]INT16 flags, [in]INT16 zoomFactor, 00077 [in]INT32 x0Server, [in]INT32 y0Server, [in]INT32 x1Server, [in]INT32 y1Server, 00078 [in]INT32 x0Client, [in]INT32 y0Client, [in]INT32 x1Client, [in]INT32 y1Client); 00079 00080 // Note: all the capture events return their option structs, but with the values set to what 00081 // was actually used for the capture operation. As with all structs we flatten them into 00082 // the individual members to keep .NET interop happy. We also use the original struct member 00083 // names to avoid typelib bugs as per the notes at the top. 00084 [id(0x99)] HRESULT PictureCaptured([in]CMPRESULT rc, [in]CMP_UNIQUE_LONG_ID uniqueId, [in]BSTR pictureMetadata, [in]BSTR filename, [in]BSTR thumbnail, [in]INT32 pictureSize, [in]CMP_CAPTURE_QUALITY Quality, [in]CMP_CAPTURE_CAMERA CameraSelection, [in]CMP_IMAGE_FORMAT Encoding, [in]INT32 DesiredWidth, [in]INT32 DesiredHeight, [in]CMP_THUMBNAIL_TYPE ThumbnailType, [in]INT16 ThumbnailWidth, [in]INT16 ThumbnailHeight); 00085 [id(0x9A)] HRESULT VideoCaptured([in]CMPRESULT rc, [in]CMP_UNIQUE_LONG_ID uniqueId, [in]BSTR videoMetadata, [in]BSTR filename, [in]INT32 videoSize, [in]CMP_CAPTURE_QUALITY Quality, [in]CMP_CAPTURE_CAMERA CameraSelection, [in]CMP_VIDEO_ENCODING Encoding, [in]INT32 DesiredWidth, [in]INT32 DesiredHeight, [in]INT32 DurationLimit); 00086 [id(0x9B)] HRESULT AudioCaptured([in]CMPRESULT rc, [in]CMP_UNIQUE_LONG_ID uniqueId, [in]BSTR audioMetadata, [in]BSTR filename, [in]INT32 audioSize, [in]CMP_CAPTURE_QUALITY Quality, [in]CMP_AUDIO_ENCODING Encoding, [in]INT32 DurationLimit); 00087 00088 [id(0x9C)] HRESULT SupportedOrientationsChanged([in]CMPRESULT rc, [in]CMP_SUPPORTED_ORIENTATIONS supportedOrientations); 00089 00090 [id(0x9D)] HRESULT AppForeground(); 00091 [id(0x9E)] HRESULT AppBackground(); 00092 [id(0x9F)] HRESULT ForegroundAppChanged([in]DWORD foregroundProcessId); 00093 [id(0xA0)] HRESULT CaptureMediaRemoved([in]CMPRESULT rc, [in]CMP_UNIQUE_LONG_ID captureId); 00094 00095 }; 00096 00097 // IEventSource 00098 [ 00099 object, 00100 uuid("BDD168D6-7916-4D04-A8BF-8F258C7A632C"), 00101 helpstring("IEventSource interface") 00102 ] 00103 __interface IEventSource 00104 { 00105 [id(0x01)] HRESULT FireSessionStateChangedEvent([in]CMP_SESSION_STATE State); 00106 [id(0x02)] HRESULT FireChannelStateChangedEvent([in]CMP_CHANNEL_STATE State); 00107 [id(0x03)] HRESULT FireOrientationChangedEvent([in]CMPRESULT rc, [in]CMP_ORIENTATION_DATA *OrientationData); 00108 [id(0x04)] HRESULT FirePictureTakenEvent([in]CMPRESULT rc, [in]CMP_UNIQUE_ID ImageID, [in]CMP_IMAGE_FORMAT Format, [in]INT32 PictureSize, [in]BSTR filename); 00109 [id(0x05)] HRESULT FireSMSStartedEvent([in]CMPRESULT rc, [in]CMP_UNIQUE_ID MsgID); 00110 [id(0x07)] HRESULT FireButtonPressedEvent([in]CMP_BUTTON_ID Button); 00111 00112 [id(0x0A)] HRESULT FireDisplaySettingsChangedEvent([in]CMP_DISPLAY_SETTINGS *DisplayMetrics); 00113 [id(0x0B)] HRESULT FireScrollModeChangedEvent([in]CMPRESULT rc, [in]CMP_SCROLL_MODE ScrollMode); 00114 [id(0x0C)] HRESULT FireKeyboardStateChangedEvent([in]CMPRESULT rc, [in]CMP_KEYBOARD_STATE* KeyboardState); 00115 [id(0x0E)] HRESULT FireViewportOriginChangedEvent([in]CMPRESULT rc, [in]CMP_DISPLAY_POINT *point); 00116 [id(0x0F)] HRESULT FireButtonTargetChangedEvent([in]CMPRESULT rc, [in]CMP_BUTTON_ID Button, [in]CMP_BUTTON_TARGET ButtonTarget); 00117 [id(0x10)] HRESULT FireControlStateChangedEvent([in]CMPRESULT rc, [in]INT16 ControlState); 00118 [id(0x11)] HRESULT FirePhoneCallStartedEvent([in]CMPRESULT rc, [in]CMP_UNIQUE_ID CallId); 00119 [id(0x14)] HRESULT FireUserNotifiedEvent([in]CMPRESULT rc, [in]CMP_UNIQUE_ID NotificationId); 00120 [id(0x15)] HRESULT FireCameraPictureRemovedEvent([in]CMPRESULT rc, [in]CMP_UNIQUE_ID pictureId); 00121 [id(0x16)] HRESULT FireEventFilterChangedEvent([in]CMPRESULT rc, [in]CMP_EVENT_ID EventId, [in]INT16 FilterFlags); 00122 [id(0x17)] HRESULT FirePickerControlStateChangedEvent([in]CMP_UNIQUE_ID ControlId, [in]INT16 PickerFlags, [in]CMPRESULT result, [in]INT16 SelectedItemIndex); 00123 [id(0x18)] HRESULT FireViewportChangedEvent([in]CMPRESULT rc, [in]INT16 flags, [in]INT16 zoomFactor, [in]CMP_DISPLAY_RECT* serverViewport, [in]CMP_DISPLAY_RECT* clientViewport); 00124 00125 [id(0x19)] HRESULT FirePictureCaptured([in]CMPRESULT rc, [in]CMP_UNIQUE_LONG_ID uniqueId, [in]BSTR pictureMetadata, [in]BSTR filename, [in]BSTR thumbnail, [in]UINT32 pictureSize, [in]CMP_CAPTURE_PICTURE_OPTIONS *options); 00126 [id(0x1A)] HRESULT FireVideoCaptured([in]CMPRESULT rc, [in]CMP_UNIQUE_LONG_ID uniqueId, [in]BSTR videoMetadata, [in]BSTR filename, [in]UINT32 videoSize, [in]CMP_CAPTURE_VIDEO_OPTIONS *options); 00127 [id(0x1B)] HRESULT FireAudioCaptured([in]CMPRESULT rc, [in]CMP_UNIQUE_LONG_ID uniqueId, [in]BSTR audioMetadata, [in]BSTR filename, [in]UINT32 audioSize, [in]CMP_CAPTURE_AUDIO_OPTIONS *options); 00128 00129 [id(0x1C)] HRESULT FireSupportedOrientationsChanged([in]CMPRESULT rc, [in]CMP_SUPPORTED_ORIENTATIONS supportedOrientations); 00130 00131 [id(0x1D)] HRESULT FireAppForeground(); 00132 [id(0x1E)] HRESULT FireAppBackground(); 00133 [id(0x1F)] HRESULT FireForegroundAppChanged([in]DWORD foregroundProcessId); 00134 [id(0x20)] HRESULT FireCaptureMediaRemoved([in]CMPRESULT rc, [in]CMP_UNIQUE_LONG_ID captureId); 00135 }; 00136 00137 [ 00138 object, 00139 uuid("B18C4A5E-0017-4E66-B9E4-067D01E62856"), 00140 helpstring("Citrix Event Filter Interface") 00141 ] 00142 __interface IEventFilter: IUnknown 00143 { 00144 HRESULT FilterEvent([in]CMP_EVENT_ID eventId, [in]INT16 filterFlags, [out, retval]CMPRESULT* result); 00145 }; 00146