Mobile SDK for Windows Apps2.0
Transforming Windows apps into Mobile apps
Dispatch.h
Go to the documentation of this file.
00001 
00011 #pragma once
00012 
00013 #include <cmp.h>
00014 
00015 // Automation interface
00016 // very limited to which variables can be used based on being consumed by automation
00017 // Limitations:
00018 //   Can only use signed integers (INT16 or INT32)
00019 //   Structures can only contain simple data types that are known to automation
00020 //   Typedefs generally have trouble since they might not be picked up in typelib
00021 //
00022 [
00023     dual,
00024     oleautomation,
00025     uuid("6E75C018-2239-4BE2-AE5E-178961D3F5D3"),
00026     helpstring("Citrix Mobility CMPDispatch Interface")
00027 ]
00028 __interface ICMPDispatch: IDispatch
00029 {
00030     STDMETHODIMP GetButtonTarget([in]CMP_BUTTON_ID button, [out]CMP_BUTTON_TARGET* target,  [out, retval]CMPRESULT *result);
00031     STDMETHODIMP SetButtonTarget([in]CMP_BUTTON_ID button, [in]CMP_BUTTON_TARGET target, [out, retval]CMPRESULT *result);
00032 
00033     STDMETHODIMP OpenSession([out, retval]CMPRESULT *result);
00034     STDMETHODIMP IsSessionActive([out, retval]VARIANT_BOOL *sessionActive);
00035     STDMETHODIMP GetSessionState([out, retval]CMP_SESSION_STATE* sessionState);
00036     STDMETHODIMP CloseSession([out, retval]CMPRESULT *result);
00037 
00038     STDMETHODIMP GetCapabilityBool([in]CMP_CAP_ID capID,  [in]CMP_KEY_ID keyId, [out]VARIANT_BOOL *keyValue,   [out,retval]CMPRESULT* result);
00039     STDMETHODIMP GetCapabilityInt16([in]CMP_CAP_ID capID, [in]CMP_KEY_ID keyId, [out]INT16 *keyValue,  [out,retval]CMPRESULT* result);
00040     STDMETHODIMP GetCapabilityInt32([in]CMP_CAP_ID capID, [in]CMP_KEY_ID keyId, [out]INT32 *keyValue,  [out,retval]CMPRESULT* result);
00041 
00042     STDMETHODIMP IsChannelOpen([out, retval]VARIANT_BOOL *readyState);
00043     STDMETHODIMP OpenChannel([in]CMP_CHANNEL_FLAGS ChannelFlags, [out, retval]CMPRESULT* result);
00044     STDMETHODIMP CloseChannel([out, retval]CMPRESULT* result);
00045 
00046     STDMETHODIMP EnableControls([out, retval]CMPRESULT* result);
00047     STDMETHODIMP DisableControls([out, retval]CMPRESULT* result);
00048     STDMETHODIMP GetControlsFlags([out]INT16* controlFlags, [out, retval]CMPRESULT* result);
00049 
00050     STDMETHODIMP TakePicture([in]CMP_IMAGE_FORMAT imgType, [in]CMP_UNIQUE_ID imageID, [out, retval]CMPRESULT* result);
00051 
00052     STDMETHODIMP GetPictureState([in]CMP_UNIQUE_ID pictureId, [out]INT32* size, [out]CMP_PICTURE_STATE* pictState, 
00053                             [out, retval]CMPRESULT* result);
00054     STDMETHODIMP GetPictureFilename([in]CMP_UNIQUE_ID pictureId, [out]BSTR* filename, [out, retval]CMPRESULT* result);
00055 
00056     STDMETHODIMP RemovePicture([in]CMP_UNIQUE_ID pictureId, [out, retval]CMPRESULT* result);
00057 
00058     STDMETHODIMP GetDevicePropertyBool([in]CMP_DEV_BOOL_PROP_ID   propertyId, [out]VARIANT_BOOL *deviceBool, [out,retval]CMPRESULT* result);
00059     STDMETHODIMP GetDevicePropertyString([in]CMP_DEV_STRING_PROP_ID propertyId, [out]BSTR *deviceString, [out,retval]CMPRESULT* result);
00060 
00061     STDMETHODIMP GetOrientation([out]CMP_ORIENTATION_DATA* orientationData, [out,retval]CMPRESULT* result);
00062 
00063     STDMETHODIMP SetOrientation([in]CMP_ORIENTATION_POSITION orientation, [in]INT16 orientationFlags, [out,retval]CMPRESULT* result);
00064     STDMETHODIMP GetScrollMode([out]CMP_SCROLL_MODE* scrollMode, [out,retval]CMPRESULT* result);
00065     STDMETHODIMP SetScrollMode([in]CMP_SCROLL_MODE scrollMode, [out,retval]CMPRESULT* result);
00066     STDMETHODIMP SetViewportOrigin([in]CMP_DISPLAY_POINT* pt, [in]INT16 viewportFlags, [out,retval]CMPRESULT* result);
00067     STDMETHODIMP GetViewportOrigin([in]CMP_DISPLAY_POINT* pt, [out,retval]CMPRESULT* result);
00068 
00069     STDMETHODIMP GetDisplaySettings([out]CMP_DISPLAY_SETTINGS *dispSettings, [out, retval]CMPRESULT* result);
00070 
00071     STDMETHODIMP NotifyUser([in]CMP_UNIQUE_ID notificationId, [in]INT16 notificationFlags, 
00072                        [in]BSTR notificationText, [out, retval]CMPRESULT* result);
00073 
00074     STDMETHODIMP StartPhoneCall([in]BSTR phoneNumber, [in]CMP_UNIQUE_ID phoneCallId, [out, retval]CMPRESULT* result);
00075     STDMETHODIMP SendSMS([in]BSTR phoneNumber, [in]CMP_UNIQUE_ID msgID, [in]BSTR SMSText, [out, retval]CMPRESULT* result);
00076 
00077     STDMETHODIMP HideKeyboard([out,retval]CMPRESULT* result);
00078     STDMETHODIMP ShowKeyboard([in]CMP_KEYBOARD_STATE* kybdState, [out,retval]CMPRESULT* result);
00079     STDMETHODIMP GetKeyboardState([out]CMP_KEYBOARD_STATE* kybdState, [out, retval]CMPRESULT* result);
00080 
00081 
00082     STDMETHODIMP HidePicker([in]CMP_UNIQUE_ID controlID, [out, retval]CMPRESULT* result);
00083     STDMETHODIMP GetPickerState([in]CMP_UNIQUE_ID controlId, [out]PINT16 pickerState, [out, retval]CMPRESULT* result);
00084 
00085     STDMETHODIMP ShowPicker([in]CMP_UNIQUE_ID controlId, [in]CMP_DISPLAY_RECT *rect, [in]INT32 selectedIndex, 
00086                             [in, satype("BSTR")]SAFEARRAY **pickerText, [in]BSTR pickerTitle, [out, retval]CMPRESULT* result);
00087 
00088     STDMETHODIMP SetViewport([in]INT16 flags, [in]INT16 zoomFactor, [in]CMP_DISPLAY_RECT* serverViewport,
00089                              [out,retval]CMPRESULT* result);
00090     STDMETHODIMP GetViewport([out]INT16* flags, [out]INT16* zoomFactor, [out]CMP_DISPLAY_RECT* serverViewport, 
00091                              [out]CMP_DISPLAY_RECT* clientViewport, [out,retval]CMPRESULT* result);
00092 
00093     STDMETHODIMP GetChannelState([out, retval]CMP_CHANNEL_STATE* state);
00094 
00095     STDMETHODIMP RegisterCMPProcess([in]DWORD processId, [out, retval]CMPRESULT* result);
00096     STDMETHODIMP UnregisterCMPProcess([in]DWORD processId, [out, retval]CMPRESULT* result);
00097     STDMETHODIMP DetectCMPProcess([in]DWORD processId, [out]VARIANT_BOOL* flag, [out,retval]CMPRESULT *result);
00098 
00099     STDMETHODIMP OpenSessionForProcess([in]DWORD processId, [out, retval]CMPRESULT* result);
00100 
00101     STDMETHODIMP CapturePicture([in]CMP_CAPTURE_PICTURE_OPTIONS *options, [out]CMP_UNIQUE_LONG_ID *uniqueId, [out, retval]CMPRESULT* result);
00102     STDMETHODIMP CaptureVideo([in]CMP_CAPTURE_VIDEO_OPTIONS *options, [out]CMP_UNIQUE_LONG_ID *uniqueId, [out, retval]CMPRESULT* result);
00103     STDMETHODIMP CaptureAudio([in]CMP_CAPTURE_AUDIO_OPTIONS *options, [out]CMP_UNIQUE_LONG_ID *uniqueId, [out, retval]CMPRESULT* result);
00104     STDMETHODIMP RemoveCapturedData([in]CMP_UNIQUE_LONG_ID uniqueId, [out, retval]CMPRESULT* result);
00105 
00106     STDMETHODIMP SetSupportedOrientations([in]CMP_SUPPORTED_ORIENTATIONS supportedOrientations, [out,retval]CMPRESULT* result);
00107     STDMETHODIMP GetSupportedOrientations([out]CMP_SUPPORTED_ORIENTATIONS *supportedOrientations, [out,retval]CMPRESULT* result);
00108 };
00109 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Events Defines