IToiFrontendDownloader.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * IToiFrontendDownloader.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 ITOIFRONTENDDOWNLOADER_IDL
00016 #define ITOIFRONTENDDOWNLOADER_IDL
00017 
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiNotEnoughResourcesException.idl"
00020 #include "TToiUnhandledValueException.idl"
00021 #include "IToiApplicationService.idl"
00022 #include "IToiOperationManager.idl"
00023 #include "TToiInvalidPreconditionException.idl"
00024 #include "TToiNoDataException.idl"
00025 
00033 interface IToiFrontendDownloader {
00034 
00040   
00046   const IToiOperationManager::TToiOperationResult OP_RESULT_DOWNLOAD_INFO = 1;
00047   
00049   
00052   enum TToiDownloadType
00053   {
00054     
00057     //Value of DOWNLOAD_TYPE_SOFTWARE = 0
00058     DOWNLOAD_TYPE_SOFTWARE,
00059     
00062     //Value of DOWNLOAD_TYPE_SPLASH = 1
00063     DOWNLOAD_TYPE_SPLASH
00064   };
00067   enum TToiDownloadAvailability
00068   {
00069     
00072     //Value of DOWNLOAD_NOT_AVAILABLE = 0
00073     DOWNLOAD_NOT_AVAILABLE,
00074     
00077     //Value of DOWNLOAD_AVAILABLE = 1
00078     DOWNLOAD_AVAILABLE
00079   };
00081   typedef string TToiDownloadVersion;
00082   
00084   struct TToiDownloadInfo {
00086     IToiFrontendDownloader::TToiDownloadType DownloadType;
00088     IToiFrontendDownloader::TToiDownloadAvailability DownloadAvailability;
00090     IToiFrontendDownloader::TToiDownloadVersion DownloadVersion;
00091   };
00092   
00126   void StartSearch(in IToiOperationManager::TToiOperationId operationId, 
00127         in TToiDownloadType downloadType)
00128    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00129   
00165   void StartDownload(in IToiOperationManager::TToiOperationId operationId, 
00166         in TToiDownloadType downloadType)
00167    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00168   
00198   void Install(in IToiOperationManager::TToiOperationId operationId)
00199    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00200   
00219   void GetDownloadInfoResult(in IToiOperationManager::TToiOperationId operationId, 
00220         out TToiDownloadInfo downloadInfo)
00221    raises (TToiInvalidArgumentException, TToiNoDataException);
00222   
00228   //@ [ReleaseInstance]
00229   
00230   
00231   void ReleaseInstance();
00232   
00233 };
00234 
00235 #endif