ToiApplicationService.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TOIAPPLICATIONSERVICE_IDL
00016 #define TOIAPPLICATIONSERVICE_IDL
00017
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiUnhandledValueException.idl"
00020 #include "ToiEventTarget.idl"
00021
00022
00023 interface ToiApplicationServiceApplicationInfo;
00024
00030
00031
00034 interface ToiApplicationService : ToiEventTarget {
00035
00038
00042 const long ON_STATE_CHANGED = 200;
00043
00045
00054
00055 typedef long TToiApplicationState;
00058
00066
00067 const TToiApplicationState STATE_REGISTERED = 0;
00068
00080
00081 const TToiApplicationState STATE_INSTALLING = 1;
00082
00093
00094 const TToiApplicationState STATE_INSTALLED = 2;
00095
00113
00114 const TToiApplicationState STATE_STARTING = 3;
00115
00125
00126 const TToiApplicationState STATE_INVISIBLE = 4;
00127
00138
00139 const TToiApplicationState STATE_VISIBLE = 5;
00140
00148
00149 const TToiApplicationState STATE_ACTIVE = 6;
00150
00166
00167 const TToiApplicationState STATE_STOPPED = 7;
00168
00170
00171 typedef long TToiApplicationId;
00172
00174 typedef sequence < TToiApplicationId > TToiApplicationIdSequence;
00175
00177 typedef sequence < ToiApplicationServiceApplicationInfo > TToiApplicationInfoSequence;
00178
00180 typedef sequence < string > TToiPropertyStringSequence;
00181
00197 void activate(in TToiApplicationId applicationId)
00198 raises (TToiInvalidArgumentException);
00199
00216 void activateWithUri(in TToiApplicationId applicationId,
00217 in string uri,
00218 in string mimeType)
00219 raises (TToiInvalidArgumentException);
00220
00236 void activateWithCommand(in TToiApplicationId applicationId,
00237 in string command)
00238 raises (TToiInvalidArgumentException);
00239
00257 void deactivate(in TToiApplicationId applicationId)
00258 raises (TToiInvalidArgumentException);
00259
00275 void kill(in TToiApplicationId applicationId)
00276 raises (TToiInvalidArgumentException);
00277
00287
00288 TToiApplicationId getOwnApplicationId();
00289
00298
00299 TToiApplicationIdSequence getApplicationIds();
00300
00313
00314 boolean getBoolProperty(in TToiApplicationId applicationId,
00315 in string property)
00316 raises (TToiInvalidArgumentException);
00317
00330
00331 long getIntProperty(in TToiApplicationId applicationId,
00332 in string property)
00333 raises (TToiInvalidArgumentException);
00334
00347
00348 string getStringProperty(in TToiApplicationId applicationId,
00349 in string property)
00350 raises (TToiInvalidArgumentException);
00351
00367
00368 TToiPropertyStringSequence getStringSequenceProperty(in TToiApplicationId applicationId,
00369 in string property)
00370 raises (TToiInvalidArgumentException);
00371
00384
00385 ToiApplicationServiceApplicationInfo getInfo(in TToiApplicationId applicationId)
00386 raises (TToiInvalidArgumentException);
00387
00404 void loadUri(in string uri,
00405 in string mimeType)
00406 raises (TToiUnhandledValueException);
00407
00408 };
00409
00410 #endif