00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 *-------------------------------------------------------------------- 00003 * 00004 * ToiFrontendDownloader.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 TOIFRONTENDDOWNLOADER_IDL 00016 #define TOIFRONTENDDOWNLOADER_IDL 00017 00018 #include "TToiInvalidArgumentException.idl" 00019 #include "TToiNotEnoughResourcesException.idl" 00020 #include "TToiUnhandledValueException.idl" 00021 #include "ToiApplicationService.idl" 00022 #include "ToiOperationManager.idl" 00023 #include "TToiInvalidPreconditionException.idl" 00024 #include "TToiNoDataException.idl" 00025 //@ [Struct(Interface=IToiFrontendDownloader,Name=TToiDownloadInfo)] 00026 interface ToiFrontendDownloaderDownloadInfo; 00027 00035 //@ [ReleaseInstance(Method=ReleaseInstance)] 00036 interface ToiFrontendDownloader { 00037 00043 00049 const ToiOperationManager::TToiOperationResult OP_RESULT_DOWNLOAD_INFO = 1; 00050 00052 00055 //@ [Enum] 00056 typedef long TToiDownloadType; 00059 00065 //@ [Enumerator(Enum=TToiDownloadType,Name=DOWNLOAD_TYPE_SOFTWARE)] 00066 const TToiDownloadType DOWNLOAD_TYPE_SOFTWARE = 0; 00067 00073 //@ [Enumerator(Enum=TToiDownloadType,Name=DOWNLOAD_TYPE_SPLASH)] 00074 const TToiDownloadType DOWNLOAD_TYPE_SPLASH = 1; 00075 00077 00079 //@ [Enum] 00080 typedef long TToiDownloadAvailability; 00083 00089 //@ [Enumerator(Enum=TToiDownloadAvailability,Name=DOWNLOAD_NOT_AVAILABLE)] 00090 const TToiDownloadAvailability DOWNLOAD_NOT_AVAILABLE = 0; 00091 00097 //@ [Enumerator(Enum=TToiDownloadAvailability,Name=DOWNLOAD_AVAILABLE)] 00098 const TToiDownloadAvailability DOWNLOAD_AVAILABLE = 1; 00099 00101 00102 typedef string TToiDownloadVersion; 00103 00137 void startSearch(in ToiOperationManager::TToiOperationId operationId, 00138 in TToiDownloadType downloadType) 00139 raises (TToiInvalidArgumentException, TToiInvalidPreconditionException); 00140 00176 void startDownload(in ToiOperationManager::TToiOperationId operationId, 00177 in TToiDownloadType downloadType) 00178 raises (TToiInvalidArgumentException, TToiInvalidPreconditionException); 00179 00209 void install(in ToiOperationManager::TToiOperationId operationId) 00210 raises (TToiInvalidArgumentException, TToiInvalidPreconditionException); 00211 00230 //@ [OutParam(Name=downloadInfo,Position=2,IsBinary=0, Bound=0)] 00231 ToiFrontendDownloaderDownloadInfo getDownloadInfoResult(in ToiOperationManager::TToiOperationId operationId) 00232 raises (TToiInvalidArgumentException, TToiNoDataException); 00233 00239 //@ [ReleaseInstance] 00240 00241 00242 void releaseInstance(); 00243 00244 }; 00245 00246 #endif