ToiApplicationService.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiApplicationService.idl
00005  *
00006  * This file was created by the Motorola IDL backend, 
00007  * which is based on the OmniORB IDL parser.
00008  * Please do not modify.
00009  *
00010  * Copyright (c) 2009 Motorola Inc. All Rights Reserved.
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 //@ [Struct(Interface=IToiApplicationService,Name=TToiApplicationInfo)]
00023 interface ToiApplicationServiceApplicationInfo;
00024 
00030 //@ [EventTarget(EventObserver=IToiApplicationObserver)]
00031 //@ [Service(Name=ApplicationService)]
00034 interface ToiApplicationService : ToiEventTarget {
00035 
00038   
00042   const long ON_STATE_CHANGED = 200;
00043   
00045   
00054   //@ [Enum]
00055   typedef long TToiApplicationState;
00058   
00066   //@ [Enumerator(Enum=TToiApplicationState,Name=STATE_REGISTERED)]
00067   const TToiApplicationState STATE_REGISTERED = 0;
00068   
00080   //@ [Enumerator(Enum=TToiApplicationState,Name=STATE_INSTALLING)]
00081   const TToiApplicationState STATE_INSTALLING = 1;
00082   
00093   //@ [Enumerator(Enum=TToiApplicationState,Name=STATE_INSTALLED)]
00094   const TToiApplicationState STATE_INSTALLED = 2;
00095   
00113   //@ [Enumerator(Enum=TToiApplicationState,Name=STATE_STARTING)]
00114   const TToiApplicationState STATE_STARTING = 3;
00115   
00125   //@ [Enumerator(Enum=TToiApplicationState,Name=STATE_INVISIBLE)]
00126   const TToiApplicationState STATE_INVISIBLE = 4;
00127   
00138   //@ [Enumerator(Enum=TToiApplicationState,Name=STATE_VISIBLE)]
00139   const TToiApplicationState STATE_VISIBLE = 5;
00140   
00148   //@ [Enumerator(Enum=TToiApplicationState,Name=STATE_ACTIVE)]
00149   const TToiApplicationState STATE_ACTIVE = 6;
00150   
00166   //@ [Enumerator(Enum=TToiApplicationState,Name=STATE_STOPPED)]
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   //@ [OutParam(Name=applicationId,Position=1,IsBinary=0, Bound=0)]
00288   TToiApplicationId getOwnApplicationId();
00289   
00298   //@ [OutParam(Name=applicationIds,Position=1,IsBinary=0, Bound=0)]
00299   TToiApplicationIdSequence getApplicationIds();
00300   
00313   //@ [OutParam(Name=value,Position=3,IsBinary=0, Bound=0)]
00314   boolean getBoolProperty(in TToiApplicationId applicationId, 
00315         in string property)
00316    raises (TToiInvalidArgumentException);
00317   
00330   //@ [OutParam(Name=value,Position=3,IsBinary=0, Bound=0)]
00331   long getIntProperty(in TToiApplicationId applicationId, 
00332         in string property)
00333    raises (TToiInvalidArgumentException);
00334   
00347   //@ [OutParam(Name=value,Position=3,IsBinary=0, Bound=0)]
00348   string getStringProperty(in TToiApplicationId applicationId, 
00349         in string property)
00350    raises (TToiInvalidArgumentException);
00351   
00367   //@ [OutParam(Name=values,Position=3,IsBinary=0, Bound=0)]
00368   TToiPropertyStringSequence getStringSequenceProperty(in TToiApplicationId applicationId, 
00369         in string property)
00370    raises (TToiInvalidArgumentException);
00371   
00384   //@ [OutParam(Name=info,Position=2,IsBinary=0, Bound=0)]
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