| 1 |
/* |
| 2 |
* Copyright (C) 2024 Zhiyi Zhang for CodeWeavers |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Lesser General Public |
| 6 |
* License as published by the Free Software Foundation; either |
| 7 |
* version 2.1 of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General Public |
| 15 |
* License along with this library; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifdef __WIDL__ |
| 20 |
#pragma winrt ns_prefix |
| 21 |
#endif |
| 22 |
|
| 23 |
import "inspectable.idl"; |
| 24 |
import "asyncinfo.idl"; |
| 25 |
import "eventtoken.idl"; |
| 26 |
import "windowscontracts.idl"; |
| 27 |
import "windows.foundation.idl"; |
| 28 |
import "windows.applicationmodel.background.idl"; |
| 29 |
import "windows.applicationmodel.core.idl"; |
| 30 |
import "windows.storage.idl"; |
| 31 |
import "windows.system.idl"; |
| 32 |
|
| 33 |
namespace Windows.ApplicationModel.Background { |
| 34 |
interface IBackgroundTaskInstance; |
| 35 |
|
| 36 |
runtimeclass BackgroundTaskRegistrationGroup; |
| 37 |
} |
| 38 |
|
| 39 |
namespace Windows.ApplicationModel.Core { |
| 40 |
runtimeclass CoreApplicationView; |
| 41 |
} |
| 42 |
|
| 43 |
namespace Windows.ApplicationModel.Activation { |
| 44 |
typedef enum ActivationKind ActivationKind; |
| 45 |
typedef enum ApplicationExecutionState ApplicationExecutionState; |
| 46 |
|
| 47 |
interface IActivatedEventArgs; |
| 48 |
interface IBackgroundActivatedEventArgs; |
| 49 |
interface ISplashScreen; |
| 50 |
|
| 51 |
runtimeclass BackgroundActivatedEventArgs; |
| 52 |
runtimeclass SplashScreen; |
| 53 |
|
| 54 |
declare { |
| 55 |
interface Windows.Foundation.EventHandler<Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs *>; |
| 56 |
interface Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Activation.SplashScreen *, IInspectable *>; |
| 57 |
interface Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Background.BackgroundTaskRegistrationGroup *, Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs *>; |
| 58 |
interface Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Core.CoreApplicationView *, Windows.ApplicationModel.Activation.IActivatedEventArgs *>; |
| 59 |
} |
| 60 |
|
| 61 |
[ |
| 62 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 63 |
] |
| 64 |
enum ActivationKind |
| 65 |
{ |
| 66 |
Launch = 0, |
| 67 |
Search = 1, |
| 68 |
ShareTarget = 2, |
| 69 |
File = 3, |
| 70 |
Protocol = 4, |
| 71 |
FileOpenPicker = 5, |
| 72 |
FileSavePicker = 6, |
| 73 |
CachedFileUpdater = 7, |
| 74 |
ContactPicker = 8, |
| 75 |
Device = 9, |
| 76 |
PrintTaskSettings = 10, |
| 77 |
CameraSettings = 11, |
| 78 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 79 |
RestrictedLaunch = 12, |
| 80 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 81 |
AppointmentsProvider = 13, |
| 82 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 83 |
Contact = 14, |
| 84 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 85 |
LockScreenCall = 15, |
| 86 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 87 |
VoiceCommand = 16, |
| 88 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 89 |
LockScreen = 17, |
| 90 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 91 |
PickerReturned = 1000, |
| 92 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 93 |
WalletAction = 1001, |
| 94 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 95 |
PickFileContinuation = 1002, |
| 96 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 97 |
PickSaveFileContinuation = 1003, |
| 98 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 99 |
PickFolderContinuation = 1004, |
| 100 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 101 |
WebAuthenticationBrokerContinuation = 1005, |
| 102 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 103 |
WebAccountProvider = 1006, |
| 104 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 105 |
ComponentUI = 1007, |
| 106 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 107 |
ProtocolForResults = 1009, |
| 108 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 109 |
ToastNotification = 1010, |
| 110 |
[contract(Windows.Foundation.UniversalApiContract, 2.0)] |
| 111 |
Print3DWorkflow = 1011, |
| 112 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 113 |
DialReceiver = 1012, |
| 114 |
[contract(Windows.Foundation.UniversalApiContract, 2.0)] |
| 115 |
DevicePairing = 1013, |
| 116 |
[contract(Windows.Foundation.UniversalApiContract, 3.0)] |
| 117 |
UserDataAccountsProvider = 1014, |
| 118 |
[contract(Windows.Foundation.UniversalApiContract, 3.0)] |
| 119 |
FilePickerExperience = 1015, |
| 120 |
[contract(Windows.Foundation.UniversalApiContract, 4.0)] |
| 121 |
LockScreenComponent = 1016, |
| 122 |
[contract(Windows.Foundation.UniversalApiContract, 4.0)] |
| 123 |
ContactPanel = 1017, |
| 124 |
[contract(Windows.Foundation.UniversalApiContract, 5.0)] |
| 125 |
PrintWorkflowForegroundTask = 1018, |
| 126 |
[contract(Windows.Foundation.UniversalApiContract, 5.0)] |
| 127 |
GameUIProvider = 1019, |
| 128 |
[contract(Windows.Foundation.UniversalApiContract, 5.0)] |
| 129 |
StartupTask = 1020, |
| 130 |
[contract(Windows.Foundation.UniversalApiContract, 5.0)] |
| 131 |
CommandLineLaunch = 1021, |
| 132 |
[contract(Windows.Foundation.UniversalApiContract, 6.0)] |
| 133 |
BarcodeScannerProvider = 1022 |
| 134 |
}; |
| 135 |
|
| 136 |
[ |
| 137 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 138 |
] |
| 139 |
enum ApplicationExecutionState |
| 140 |
{ |
| 141 |
NotRunning = 0, |
| 142 |
Running = 1, |
| 143 |
Suspended = 2, |
| 144 |
Terminated = 3, |
| 145 |
ClosedByUser = 4 |
| 146 |
}; |
| 147 |
|
| 148 |
[ |
| 149 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 150 |
uuid(cf651713-cd08-4fd8-b697-a281b6544e2e) |
| 151 |
] |
| 152 |
interface IActivatedEventArgs : IInspectable |
| 153 |
{ |
| 154 |
[propget] HRESULT Kind([out, retval] Windows.ApplicationModel.Activation.ActivationKind *value); |
| 155 |
[propget] HRESULT PreviousExecutionState([out, retval] Windows.ApplicationModel.Activation.ApplicationExecutionState *value); |
| 156 |
[propget] HRESULT SplashScreen([out, retval] Windows.ApplicationModel.Activation.SplashScreen **value); |
| 157 |
} |
| 158 |
|
| 159 |
[ |
| 160 |
contract(Windows.Foundation.UniversalApiContract, 3.0), |
| 161 |
uuid(ab14bee0-e760-440e-a91c-44796de3a92d) |
| 162 |
] |
| 163 |
interface IBackgroundActivatedEventArgs : IInspectable |
| 164 |
{ |
| 165 |
[propget] HRESULT TaskInstance([out, retval] Windows.ApplicationModel.Background.IBackgroundTaskInstance **value); |
| 166 |
} |
| 167 |
|
| 168 |
[ |
| 169 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 170 |
exclusiveto(Windows.ApplicationModel.Activation.SplashScreen), |
| 171 |
uuid(ca4d975c-d4d6-43f0-97c0-0833c6391c24) |
| 172 |
] |
| 173 |
interface ISplashScreen : IInspectable |
| 174 |
{ |
| 175 |
[propget] HRESULT ImageLocation([out, retval] Windows.Foundation.Rect *value); |
| 176 |
[eventadd] HRESULT Dismissed([in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Activation.SplashScreen *, IInspectable *> *handler, [out, retval] EventRegistrationToken *cookie); |
| 177 |
[eventremove] HRESULT Dismissed([in] EventRegistrationToken cookie); |
| 178 |
} |
| 179 |
|
| 180 |
[ |
| 181 |
contract(Windows.Foundation.UniversalApiContract, 3.0), |
| 182 |
marshaling_behavior(agile) |
| 183 |
] |
| 184 |
runtimeclass BackgroundActivatedEventArgs |
| 185 |
{ |
| 186 |
[default] interface Windows.ApplicationModel.Activation.IBackgroundActivatedEventArgs; |
| 187 |
} |
| 188 |
|
| 189 |
[ |
| 190 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 191 |
] |
| 192 |
runtimeclass SplashScreen |
| 193 |
{ |
| 194 |
[default] interface Windows.ApplicationModel.Activation.ISplashScreen; |
| 195 |
} |
| 196 |
} |