Motorola Mobility Confidential Restricted.
/extra/kbs/check_outs/co_356297/STABLE_geranium_lpm_cornsilk_10/dist/idl/js/toi/ToiAssetManagerService.idl
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiAssetManagerService.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 TOIASSETMANAGERSERVICE_IDL
00016 #define TOIASSETMANAGERSERVICE_IDL
00017 
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiNotEnoughResourcesException.idl"
00020 #include "TToiUnhandledValueException.idl"
00021 #include "ToiApplicationService.idl"
00022 #include "ToiOperationManager.idl"
00023 #include "TToiPermissionDeniedException.idl"
00024 #include "TToiNoDataException.idl"
00025 #include "TToiOperationNotSupportedException.idl"
00026 #include "ToiMultipleResult.idl"
00027 #include "ToiEventTarget.idl"
00028 
00029 //@ [Struct(Interface=IToiAssetManagerService,Name=TToiPropertyDefinition)]
00030 interface ToiAssetManagerServicePropertyDefinition;
00031 //@ [Struct(Interface=IToiAssetManagerService,Name=TToiProperty)]
00032 interface ToiAssetManagerServiceProperty;
00033 //@ [Struct(Interface=IToiAssetManagerService,Name=TToiAssetInfo)]
00034 interface ToiAssetManagerServiceAssetInfo;
00035 //@ [Struct(Interface=IToiAssetManagerService,Name=TToiDirectoryInfo)]
00036 interface ToiAssetManagerServiceDirectoryInfo;
00037 //@ [Struct(Interface=IToiAssetManagerService,Name=TToiSortCondition)]
00038 interface ToiAssetManagerServiceSortCondition;
00039 //@ [Struct(Interface=IToiAssetManagerService,Name=TToiQueryCondition)]
00040 interface ToiAssetManagerServiceQueryCondition;
00041 //@ [Struct(Interface=IToiAssetManagerService,Name=TToiAssetStorageInfo)]
00042 interface ToiAssetManagerServiceAssetStorageInfo;
00043 
00054 //@ [Service(Name=AssetManagerService)]
00055 //@ [EventTarget(EventObserver=IToiAssetManagerObserver)]
00058 interface ToiAssetManagerService : ToiEventTarget {
00059 
00062   
00066   const long ON_ASSETS_ADDED = 300;
00067   
00071   const long ON_ASSETS_REMOVED = 301;
00072   
00076   const long ON_ASSETS_CHANGED = 302;
00077   
00081   const long ON_DIRECTORIES_ADDED = 303;
00082   
00086   const long ON_DIRECTORIES_REMOVED = 304;
00087   
00091   const long ON_DIRECTORIES_CHANGED = 305;
00092   
00096   const long ON_ASSET_STORAGE_ADDED = 306;
00097   
00101   const long ON_ASSET_STORAGE_REMOVED = 307;
00102   
00104   
00111   
00118   const ToiOperationManager::TToiOperationResult OP_RESULT_ASSET_INFO = 1;
00119   
00121   
00123   
00130   const ToiOperationManager::TToiOperationResult OP_RESULT_LONG = 2;
00131   
00133   
00139   //@ [Enum]
00140   typedef long TToiConditionOperation;
00143   
00149   //@ [Enumerator(Enum=TToiConditionOperation,Name=EQUALS)]
00150   const TToiConditionOperation EQUALS = 0;
00151   
00157   //@ [Enumerator(Enum=TToiConditionOperation,Name=NOT_EQUAL)]
00158   const TToiConditionOperation NOT_EQUAL = 1;
00159   
00165   //@ [Enumerator(Enum=TToiConditionOperation,Name=GREATER)]
00166   const TToiConditionOperation GREATER = 2;
00167   
00173   //@ [Enumerator(Enum=TToiConditionOperation,Name=LESS)]
00174   const TToiConditionOperation LESS = 3;
00175   
00181   //@ [Enumerator(Enum=TToiConditionOperation,Name=GREATER_OR_EQUAL)]
00182   const TToiConditionOperation GREATER_OR_EQUAL = 4;
00183   
00189   //@ [Enumerator(Enum=TToiConditionOperation,Name=LESS_OR_EQUAL)]
00190   const TToiConditionOperation LESS_OR_EQUAL = 5;
00191   
00197   //@ [Enumerator(Enum=TToiConditionOperation,Name=CONTAINS)]
00198   const TToiConditionOperation CONTAINS = 6;
00199   
00201 
00202   typedef long TToiQueryId;
00203   
00205   typedef string TToiAssetId;
00206   
00208   typedef sequence < TToiAssetId > TToiAssetIdSequence;
00209   
00212   //@ [Enum]
00213   typedef long TToiPropertyType;
00216   
00222   //@ [Enumerator(Enum=TToiPropertyType,Name=TYPE_BOOLEAN)]
00223   const TToiPropertyType TYPE_BOOLEAN = 0;
00224   
00230   //@ [Enumerator(Enum=TToiPropertyType,Name=TYPE_STRING)]
00231   const TToiPropertyType TYPE_STRING = 1;
00232   
00238   //@ [Enumerator(Enum=TToiPropertyType,Name=TYPE_INTEGER)]
00239   const TToiPropertyType TYPE_INTEGER = 2;
00240   
00246   //@ [Enumerator(Enum=TToiPropertyType,Name=TYPE_DATE)]
00247   const TToiPropertyType TYPE_DATE = 3;
00248   
00254   //@ [Enumerator(Enum=TToiPropertyType,Name=TYPE_ASSETLINK)]
00255   const TToiPropertyType TYPE_ASSETLINK = 4;
00256   
00258 
00259   typedef string TToiPropertyId;
00260   
00262   typedef sequence < TToiPropertyId > TToiPropertyIdSequence;
00263   
00265   typedef sequence < string > TToiPropertyValueSequence;
00266   
00268   typedef sequence < ToiAssetManagerServiceProperty > TToiPropertySequence;
00269   
00271   typedef sequence < ToiAssetManagerServiceAssetInfo > TToiAssetInfoSequence;
00272   
00274   typedef long TToiDirectoryId;
00275   
00277   typedef sequence < TToiDirectoryId > TToiDirectoryIdSequence;
00278   
00283   const TToiDirectoryId ROOT_DIRECTORY = -1;
00284   
00292   
00298   const string PROPERTY_SYSTEM_DURATION = "system.duration";
00299   
00301   
00303   
00309   const string PROPERTY_SYSTEM_FILESIZE = "system.filesize";
00310   
00312   
00314   
00320   const string PROPERTY_SYSTEM_PLAYBACKURI = "system.playbackuri";
00321   
00323   
00325   
00331   const string PROPERTY_SYSTEM_FILENAME = "system.filename";
00332   
00334   
00336   
00343   const string PROPERTY_SYSTEM_TYPE = "system.type";
00344   
00346   
00348   
00355   const string PROPERTY_SYSTEM_INTEGRITY_STATUS = "system.integritystatus";
00356   
00358   
00360   
00367   const string PROPERTY_SYSTEM_RECORDINGMODE = "system.recordingmode";
00368   
00370   
00372   
00382   const string PROPERTY_SYSTEM_BUFFERLENGTH = "system.bufferlength";
00383   
00385   
00387   
00394   const string PROPERTY_SYSTEM_ASSETSTORAGE = "system.assetstorage";
00395   
00397   
00399   
00404   const string PROPERTY_INFO_TITLE = "info.title";
00405   
00407   
00409   
00414   const string PROPERTY_INFO_DATE = "info.date";
00415   
00417   
00419   
00424   const string PROPERTY_INFO_DESCRIPTION = "info.description";
00425   
00427   
00429   
00434   const string PROPERTY_INFO_LONGDESCRIPTION = "info.longdescription";
00435   
00437   
00439   
00444   const string PROPERTY_INFO_CHANNELNAME = "info.channelname";
00445   
00447   
00449   
00456   const string PROPERTY_INFO_RECORDINGSTATUS = "info.recordingstatus";
00457   
00459   
00461   
00466   const string PROPERTY_INFO_MATURITYRATING = "info.maturityrating";
00467   
00469   
00471   
00478   const string PROPERTY_INFO_SHARED = "info.shared";
00479   
00481   
00483   
00488   const string PROPERTY_INFO_COVER = "info.cover";
00489   
00491   
00493   
00499   const string PROPERTY_INFO_CHILDREN = "info.children";
00500   
00502   
00504   
00512   const string PROPERTY_INFO_LOST_AND_FOUND = "info.lostandfound";
00513   
00517   //@ [Enum]
00518   typedef long TToiAssetType;
00521   
00527   //@ [Enumerator(Enum=TToiAssetType,Name=ASSET_PVR)]
00528   const TToiAssetType ASSET_PVR = 0;
00529   
00535   //@ [Enumerator(Enum=TToiAssetType,Name=ASSET_IMAGE)]
00536   const TToiAssetType ASSET_IMAGE = 1;
00537   
00543   //@ [Enumerator(Enum=TToiAssetType,Name=ASSET_AUDIO)]
00544   const TToiAssetType ASSET_AUDIO = 2;
00545   
00551   //@ [Enumerator(Enum=TToiAssetType,Name=ASSET_VIDEO)]
00552   const TToiAssetType ASSET_VIDEO = 3;
00553   
00555 
00558   //@ [Enum]
00559   typedef long TToiAssetRecordingMode;
00562   
00568   //@ [Enumerator(Enum=TToiAssetRecordingMode,Name=RECORDING_MODE_LINEAR)]
00569   const TToiAssetRecordingMode RECORDING_MODE_LINEAR = 0;
00570   
00576   //@ [Enumerator(Enum=TToiAssetRecordingMode,Name=RECORDING_MODE_CIRCULAR)]
00577   const TToiAssetRecordingMode RECORDING_MODE_CIRCULAR = 1;
00578   
00580 
00582   //@ [Enum]
00583   typedef long TToiAssetIntegrityStatus;
00586   
00592   //@ [Enumerator(Enum=TToiAssetIntegrityStatus,Name=INTEGRITY_UNKNOWN)]
00593   const TToiAssetIntegrityStatus INTEGRITY_UNKNOWN = 0;
00594   
00600   //@ [Enumerator(Enum=TToiAssetIntegrityStatus,Name=INTEGRITY_OK)]
00601   const TToiAssetIntegrityStatus INTEGRITY_OK = 1;
00602   
00609   //@ [Enumerator(Enum=TToiAssetIntegrityStatus,Name=INTEGRITY_COULD_NOT_UPGRADE)]
00610   const TToiAssetIntegrityStatus INTEGRITY_COULD_NOT_UPGRADE = 2;
00611   
00618   //@ [Enumerator(Enum=TToiAssetIntegrityStatus,Name=INTEGRITY_COULD_NOT_REPAIR)]
00619   const TToiAssetIntegrityStatus INTEGRITY_COULD_NOT_REPAIR = 3;
00620   
00622 
00624   typedef sequence < ToiAssetManagerServiceSortCondition > TToiSortConditionSequence;
00625   
00627   typedef sequence < ToiAssetManagerServiceQueryCondition > TToiQueryConditionSequence;
00628   
00633   //@ [Enum]
00634   typedef long TToiImportPolicy;
00637   
00643   //@ [Enumerator(Enum=TToiImportPolicy,Name=IMPORT_POLICY_COPY)]
00644   const TToiImportPolicy IMPORT_POLICY_COPY = 0;
00645   
00651   //@ [Enumerator(Enum=TToiImportPolicy,Name=IMPORT_POLICY_MOVE)]
00652   const TToiImportPolicy IMPORT_POLICY_MOVE = 1;
00653   
00655 
00657   typedef sequence < ToiAssetManagerServiceAssetStorageInfo > TToiAssetStorageInfoSequence;
00658   
00678   //@ [ReturnAddress(Type=IToiOperationManager)]
00679   
00680   
00681   //@ [OutParam(Name=address,Position=1,IsBinary=0, Bound=0)]
00682   ToiOperationManager getAssetOperationManager();
00683   
00703   //@ [OutParam(Name=dirId,Position=3,IsBinary=0, Bound=0)]
00704   TToiDirectoryId createDirectory(in TToiDirectoryId parentId, 
00705         in string title)
00706    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException);
00707   
00721   void moveDirectory(in TToiDirectoryId dirId, 
00722         in TToiDirectoryId newParentId)
00723    raises (TToiInvalidArgumentException);
00724   
00737   void setDirectoryProperties(in TToiDirectoryId dirId, 
00738         in TToiPropertySequence properties)
00739    raises (TToiInvalidArgumentException);
00740   
00753   void removeDirectoryProperties(in TToiDirectoryId dirId, 
00754         in TToiPropertyIdSequence properties)
00755    raises (TToiInvalidArgumentException);
00756   
00782   void removeDirectory(in TToiDirectoryId dirId, 
00783         in boolean recursiveFlag, 
00784         in boolean removeAssetsFlag)
00785    raises (TToiInvalidArgumentException, TToiPermissionDeniedException);
00786   
00799   //@ [OutParam(Name=info,Position=2,IsBinary=0, Bound=0)]
00800   ToiAssetManagerServiceDirectoryInfo getDirectoryInfo(in TToiDirectoryId dirId)
00801    raises (TToiInvalidArgumentException);
00802   
00815   //@ [OutParam(Name=childDirIds,Position=2,IsBinary=0, Bound=0)]
00816   TToiDirectoryIdSequence getDirectories(in TToiDirectoryId dirId)
00817    raises (TToiInvalidArgumentException);
00818   
00831   //@ [OutParam(Name=properties,Position=1,IsBinary=0, Bound=0)]
00832   TToiPropertyIdSequence getDefinedProperties();
00833   
00846   //@ [OutParam(Name=definition,Position=2,IsBinary=0, Bound=0)]
00847   ToiAssetManagerServicePropertyDefinition getPropertyDefinition(in TToiPropertyId propertyId)
00848    raises (TToiInvalidArgumentException);
00849   
00867   void createPropertyDefinition(in TToiPropertyId propertyId, 
00868         in TToiPropertyType type, 
00869         in boolean hasMultipleValueSupport)
00870    raises (TToiInvalidArgumentException);
00871   
00884   void removePropertyDefinition(in TToiPropertyId propertyId)
00885    raises (TToiInvalidArgumentException);
00886   
00905   //@ [OutParam(Name=assetId,Position=2,IsBinary=0, Bound=0)]
00906   TToiAssetId createAsset(in TToiAssetType assetType)
00907    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException);
00908   
00934   //@ [OutParam(Name=assetId,Position=2,IsBinary=0, Bound=0)]
00935   TToiAssetId createAssetFromProperties(in TToiPropertySequence properties)
00936    raises (TToiOperationNotSupportedException, TToiInvalidArgumentException, TToiNotEnoughResourcesException);
00937   
00973   void convertAsset(in ToiOperationManager::TToiOperationId operationId, 
00974         in TToiAssetId assetId, 
00975         in TToiAssetRecordingMode newMode, 
00976         in unsigned long long startOffset)
00977    raises (TToiInvalidArgumentException, TToiOperationNotSupportedException, TToiPermissionDeniedException);
00978   
01007   void importAsset(in ToiOperationManager::TToiOperationId operationId, 
01008         in TToiAssetId assetId, 
01009         in string uri, 
01010         in TToiImportPolicy importPolicy)
01011    raises (TToiInvalidArgumentException, TToiNoDataException);
01012   
01034   void removeAsset(in ToiOperationManager::TToiOperationId operationId, 
01035         in TToiAssetId assetId)
01036    raises (TToiInvalidArgumentException, TToiNoDataException, TToiPermissionDeniedException);
01037   
01064   void copyAsset(in ToiOperationManager::TToiOperationId operationId, 
01065         in TToiAssetId sourceAssetId, 
01066         in unsigned long long startOffset, 
01067         in unsigned long long duration, 
01068         in TToiAssetId destinationAssetId)
01069    raises (TToiInvalidArgumentException, TToiPermissionDeniedException);
01070   
01085   void linkAssets(in TToiDirectoryId dirId, 
01086         in TToiAssetIdSequence assetIds)
01087    raises (TToiInvalidArgumentException);
01088   
01101   void unlinkAssets(in TToiDirectoryId dirId, 
01102         in TToiAssetIdSequence assetIds)
01103    raises (TToiInvalidArgumentException);
01104   
01134   void runQuery(in ToiOperationManager::TToiOperationId operationId, 
01135         in TToiQueryConditionSequence queryConditions, 
01136         in TToiPropertyIdSequence requestedProperties, 
01137         in TToiSortConditionSequence sortConditions)
01138    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException);
01139   
01172   void runQueryForDirectory(in ToiOperationManager::TToiOperationId operationId, 
01173         in TToiDirectoryId directoryId, 
01174         in TToiQueryConditionSequence queryConditions, 
01175         in TToiPropertyIdSequence requestedProperties, 
01176         in TToiSortConditionSequence sortConditions)
01177    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException);
01178   
01202   void runCountQuery(in ToiOperationManager::TToiOperationId operationId, 
01203         in TToiQueryConditionSequence queryConditions)
01204    raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException);
01205   
01228   //@ [ExtendIpcMessage(SoftLimit=100000)]
01229   
01230   
01231   //@ [ToiMultipleResult=ToiAssetManagerServiceGetAssetInfoResultRet]
01232   ToiMultipleResult getAssetInfoResult(in ToiOperationManager::TToiOperationId operationId, 
01233         in unsigned long maxCount)
01234    raises (TToiInvalidArgumentException, TToiNoDataException);
01235   
01253   //@ [OutParam(Name=value,Position=2,IsBinary=0, Bound=0)]
01254   unsigned long getLongResult(in ToiOperationManager::TToiOperationId operationId)
01255    raises (TToiInvalidArgumentException, TToiNoDataException);
01256   
01274   //@ [ExtendIpcMessage(SoftLimit=100000)]
01275   
01276   
01277   //@ [OutParam(Name=properties,Position=3,IsBinary=0, Bound=0)]
01278   TToiPropertySequence getProperties(in TToiAssetId assetId, 
01279         in TToiPropertyIdSequence requestedProperties)
01280    raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException);
01281   
01297   //@ [ExtendIpcMessage(SoftLimit=100000)]
01298   
01299   
01300   //@ [OutParam(Name=properties,Position=2,IsBinary=0, Bound=0)]
01301   TToiPropertySequence getAllProperties(in TToiAssetId assetId)
01302    raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException);
01303   
01315   //@ [OutParam(Name=assetStorages,Position=1,IsBinary=0, Bound=0)]
01316   TToiAssetStorageInfoSequence getAssetStorages();
01317   
01337   void setProperties(in TToiAssetId id, 
01338         in TToiPropertySequence properties)
01339    raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException);
01340   
01360   void removeProperties(in TToiAssetId id, 
01361         in TToiPropertyIdSequence properties)
01362    raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException);
01363   
01382   void removeMultiValuedPropertyValue(in TToiAssetId id, 
01383         in ToiAssetManagerServiceProperty property)
01384    raises (TToiInvalidArgumentException, TToiNoDataException, TToiNotEnoughResourcesException);
01385   
01386 };
01387 
01388 #endif