UniSet  1.4.0
TimerService_i.idl
См. документацию.
00001 /* This file is part of the UniSet project
00002  * Copyright (c) 2002 Free Software Foundation, Inc.
00003  * Copyright (c) 2002 Pavel Vainerman
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019 // --------------------------------------------------------------------------
00025 // --------------------------------------------------------------------------
00026 #ifndef TimerService_i_IDL_
00027 #define TimerService_i_IDL_
00028 // --------------------------------------------------------------------------
00029 #include "../UniSetTypes/UniSetTypes_i.idl"
00030 #include "../UniSetTypes/UniSetObject_i.idl"
00031 // --------------------------------------------------------------------------
00035 interface TimerService_i: UniSetObject_i
00036 {
00040     exception LimitTimers
00041     {   
00042         long maxTimers;
00043     };
00044 
00048     exception TimerAlreadyExist
00049     {   
00050     };
00051 
00055     exception TimeMSLowLimit
00056     {   
00057         unsigned long lowLimitMS; // instead timeout_t
00058     };
00059 
00060 
00062     struct Timer
00063     {
00064         UniSetTypes::TimerId timerid;
00065         unsigned long timeMS;
00066         long ticks; // instead clock_t
00067         short msgPriority;
00068     };
00069 
00070 
00072     void askTimer( in Timer ti, in UniSetTypes::ConsumerInfo ci ) 
00073                     raises(LimitTimers, TimerAlreadyExist, TimeMSLowLimit);
00074 
00075 //  void setSysTime(...);
00076 //  void getSysTime(...);
00077 };
00078 
00079 #endif