| Motorola Mobility Confidential Restricted. |
|
/extra/kbs/check_outs/co_206438/STABLE_geranium_lpm_cornsilk_1/dist/idl/js/toi/ToiSchedulerService.idl 00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 *-------------------------------------------------------------------- 00003 * 00004 * ToiSchedulerService.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 TOISCHEDULERSERVICE_IDL 00016 #define TOISCHEDULERSERVICE_IDL 00017 00018 #include "TToiInvalidArgumentException.idl" 00019 #include "TToiNotEnoughResourcesException.idl" 00020 #include "TToiOperationNotSupportedException.idl" 00021 #include "TToiPermissionDeniedException.idl" 00022 #include "ToiEventTarget.idl" 00023 00024 //@ [Struct(Interface=IToiSchedulerService,Name=TToiSeries)] 00025 interface ToiSchedulerServiceSeries; 00026 //@ [Struct(Interface=IToiSchedulerService,Name=TToiBooking)] 00027 interface ToiSchedulerServiceBooking; 00028 //@ [Struct(Interface=IToiSchedulerService,Name=TToiSolution)] 00029 interface ToiSchedulerServiceSolution; 00030 00051 //@ [EventTarget(EventObserver=IToiSchedulerObserver)] 00052 //@ [Service(Name=SchedulerService)] 00055 interface ToiSchedulerService : ToiEventTarget { 00056 00059 00063 const long ON_SCHEDULED_START = 2200; 00064 00068 const long ON_SCHEDULED_STOP = 2201; 00069 00073 const long ON_SCHEDULED_TRIGGER = 2202; 00074 00078 const long ON_SCHEDULED_DISCONTINUITY = 2203; 00079 00083 const long ON_BOOKINGS_ADDED = 2204; 00084 00088 const long ON_BOOKINGS_REMOVED = 2205; 00089 00093 const long ON_BOOKINGS_CHANGED = 2206; 00094 00098 const long ON_SERIES_CHANGED = 2207; 00099 00101 00104 typedef long TToiBookingId; 00105 00113 const TToiBookingId BOOKING_ID_NONE = 0; 00114 00117 typedef long TToiSeriesId; 00118 00124 const TToiSeriesId SERIES_ID_NONE = 0; 00125 00129 typedef long TToiTime; 00130 00136 const TToiTime TIME_NOW = -1; 00137 00141 typedef long TToiWeekdayMask; 00142 00148 const long WEEKDAY_MONDAY = 1; 00149 00155 const long WEEKDAY_TUESDAY = 2; 00156 00162 const long WEEKDAY_WEDNESDAY = 4; 00163 00169 const long WEEKDAY_THURSDAY = 8; 00170 00176 const long WEEKDAY_FRIDAY = 16; 00177 00183 const long WEEKDAY_SATURDAY = 32; 00184 00190 const long WEEKDAY_SUNDAY = 64; 00191 00197 const long WEEKDAY_ALL_WEEKDAYS = 127; 00198 00201 typedef sequence < TToiBookingId > TToiBookingIdSequence; 00202 00205 typedef sequence < TToiSeriesId > TToiSeriesIdSequence; 00206 00207 typedef sequence < ToiSchedulerServiceBooking > TToiBookingSequence; 00208 00213 //@ [Enum] 00214 typedef long TToiConflictStrategy; 00217 00224 //@ [Enumerator(Enum=TToiConflictStrategy,Name=CONFLICT_STRATEGY_FAIL)] 00225 const TToiConflictStrategy CONFLICT_STRATEGY_FAIL = 0; 00226 00233 //@ [Enumerator(Enum=TToiConflictStrategy,Name=CONFLICT_STRATEGY_SKIP_BOOKINGS)] 00234 const TToiConflictStrategy CONFLICT_STRATEGY_SKIP_BOOKINGS = 1; 00235 00237 00242 //@ [Enum] 00243 typedef long TToiSolutionType; 00246 00252 //@ [Enumerator(Enum=TToiSolutionType,Name=SOLUTION_TYPE_NONE)] 00253 const TToiSolutionType SOLUTION_TYPE_NONE = 0; 00254 00260 //@ [Enumerator(Enum=TToiSolutionType,Name=SOLUTION_TYPE_REMOVE)] 00261 const TToiSolutionType SOLUTION_TYPE_REMOVE = 1; 00262 00264 00270 typedef sequence < ToiSchedulerServiceSolution > TToiConflictSequence; 00271 00276 typedef long TToiDelta; 00277 00281 typedef sequence < TToiDelta > TToiDeltaSequence; 00282 00284 typedef sequence < string > TToiParameterNameSequence; 00285 00287 typedef sequence < string > TToiParameterValueSequence; 00288 00316 //@ [OutParam(Name=id,Position=5,IsBinary=0, Bound=0)] 00317 TToiBookingId schedule(in string category, 00318 in string activity, 00319 in TToiTime start, 00320 in long duration) 00321 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException); 00322 00358 //@ [OutParam(Name=id,Position=8,IsBinary=0, Bound=0)] 00359 TToiSeriesId scheduleSeries(in string category, 00360 in string activity, 00361 in TToiTime start, 00362 in long duration, 00363 in long weekdays, 00364 in long numberOfOccurrences, 00365 in TToiConflictStrategy conflictStrategy) 00366 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException); 00367 00402 void reschedule(in TToiBookingId id, 00403 in string category, 00404 in string activity, 00405 in TToiTime start, 00406 in long duration) 00407 raises (TToiInvalidArgumentException, TToiNotEnoughResourcesException); 00408 00418 void remove(in TToiBookingId id) 00419 raises (TToiInvalidArgumentException); 00420 00431 void removeSeries(in TToiSeriesId id) 00432 raises (TToiInvalidArgumentException); 00433 00462 //@ [OutParam(Name=conflicts,Position=6,IsBinary=0, Bound=0)] 00463 TToiConflictSequence getConflicts(in TToiBookingId id, 00464 in string category, 00465 in string activity, 00466 in TToiTime start, 00467 in long duration) 00468 raises (TToiInvalidArgumentException); 00469 00505 //@ [OutParam(Name=conflicts,Position=8,IsBinary=0, Bound=0)] 00506 TToiConflictSequence getSeriesConflicts(in TToiSeriesId id, 00507 in string category, 00508 in string activity, 00509 in TToiTime start, 00510 in long duration, 00511 in long weekdays, 00512 in long occurrence) 00513 raises (TToiInvalidArgumentException); 00514 00526 //@ [OutParam(Name=nextStart,Position=2,IsBinary=0, Bound=0)] 00527 TToiTime getNextStartTime(in string categoryExpression); 00528 00540 //@ [OutParam(Name=booking,Position=2,IsBinary=0, Bound=0)] 00541 ToiSchedulerServiceBooking getBooking(in TToiBookingId id) 00542 raises (TToiInvalidArgumentException); 00543 00556 //@ [OutParam(Name=series,Position=2,IsBinary=0, Bound=0)] 00557 ToiSchedulerServiceSeries getSeries(in TToiSeriesId id) 00558 raises (TToiInvalidArgumentException); 00559 00576 //@ [ExtendIpcMessage(SoftLimit=20480)] 00577 00578 00579 //@ [OutParam(Name=bookings,Position=4,IsBinary=0, Bound=0)] 00580 TToiBookingIdSequence getBookingIds(in string categoryExpression, 00581 in TToiTime start, 00582 in TToiTime stop) 00583 raises (TToiInvalidArgumentException); 00584 00596 //@ [OutParam(Name=seriesIds,Position=2,IsBinary=0, Bound=0)] 00597 TToiSeriesIdSequence getSeriesIds(in string categoryExpression); 00598 00610 //@ [OutParam(Name=bookings,Position=2,IsBinary=0, Bound=0)] 00611 TToiBookingIdSequence getBookingIdsForSeries(in TToiSeriesId seriesId) 00612 raises (TToiInvalidArgumentException); 00613 00627 void addTrigger(in TToiBookingId id, 00628 in TToiDelta delta) 00629 raises (TToiInvalidArgumentException); 00630 00643 void removeTrigger(in TToiBookingId id, 00644 in TToiDelta delta) 00645 raises (TToiInvalidArgumentException); 00646 00660 void addTriggerOnBookings(in TToiBookingIdSequence ids, 00661 in TToiDelta delta) 00662 raises (TToiInvalidArgumentException); 00663 00677 void removeTriggerOnBookings(in TToiBookingIdSequence ids, 00678 in TToiDelta delta) 00679 raises (TToiInvalidArgumentException); 00680 00692 //@ [OutParam(Name=deltas,Position=2,IsBinary=0, Bound=0)] 00693 TToiDeltaSequence getTriggers(in TToiBookingId id) 00694 raises (TToiInvalidArgumentException); 00695 00709 void setParameter(in TToiBookingId id, 00710 in string name, 00711 in string value) 00712 raises (TToiInvalidArgumentException); 00713 00724 void unsetParameter(in TToiBookingId id, 00725 in string name) 00726 raises (TToiInvalidArgumentException); 00727 00741 //@ [OutParam(Name=value,Position=3,IsBinary=0, Bound=0)] 00742 string getParameter(in TToiBookingId id, 00743 in string name) 00744 raises (TToiInvalidArgumentException); 00745 00756 //@ [OutParam(Name=names,Position=2,IsBinary=0, Bound=0)] 00757 TToiParameterNameSequence getParameterNames(in TToiBookingId id) 00758 raises (TToiInvalidArgumentException); 00759 00774 void setParametersOnBookings(in TToiBookingIdSequence ids, 00775 in TToiParameterNameSequence names, 00776 in TToiParameterValueSequence values) 00777 raises (TToiInvalidArgumentException); 00778 00793 void setSeriesParameter(in TToiSeriesId id, 00794 in string name, 00795 in string value) 00796 raises (TToiInvalidArgumentException); 00797 00809 void unsetSeriesParameter(in TToiSeriesId id, 00810 in string name) 00811 raises (TToiInvalidArgumentException); 00812 00826 //@ [OutParam(Name=value,Position=3,IsBinary=0, Bound=0)] 00827 string getSeriesParameter(in TToiSeriesId id, 00828 in string name) 00829 raises (TToiInvalidArgumentException); 00830 00842 //@ [OutParam(Name=names,Position=2,IsBinary=0, Bound=0)] 00843 TToiParameterNameSequence getSeriesParameterNames(in TToiSeriesId id) 00844 raises (TToiInvalidArgumentException); 00845 00856 //@ [EventFilter(AddressPosition=1)] 00857 00858 00859 void setCategorySubscription(in ToiEventListener eventListener, 00860 in string categoryExpression) 00861 raises (TToiInvalidArgumentException); 00862 00863 }; 00864 00865 #endif |