WvStreams
IStaticServiceHandler.h
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2  *
3  * XPLC - Cross-Platform Lightweight Components
4  * Copyright (C) 2000-2002, Pierre Phaneuf
5  * Copyright (C) 2002, Net Integration Technologies, Inc.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20  * USA
21  */
22 
23 #ifndef __XPLC_ISTATICSERVICEHANDLER_H__
24 #define __XPLC_ISTATICSERVICEHANDLER_H__
25 
26 #if defined(__GNUC__) && __GNUC__ > 3
27 # pragma GCC system_header
28 #endif
29 
30 #include <xplc/IServiceHandler.h>
31 
38 public:
40  virtual void addObject(const UUID&, IObject*) = 0;
42  virtual void removeObject(const UUID&) = 0;
43 };
44 
45 DEFINE_IID(IStaticServiceHandler, {0x0a599d64, 0x0684, 0x4c44,
46  {0x8a, 0xbc, 0xab, 0xfd, 0x5d, 0xe0, 0x22, 0x59}});
47 
48 #endif /* __XPLC_ISTATICSERVICEHANDLER_H__ */
IStaticServiceHandler
Service handler for statically linked components.
Definition: IStaticServiceHandler.h:36
UNSTABLE_INTERFACE
#define UNSTABLE_INTERFACE
Used to mark an interface as unstable.
Definition: IObject.h:46
IServiceHandler
Definition: IServiceHandler.h:43
IObject
Definition: IObject.h:65
_GUID
The structure underlying UUIDs.
Definition: uuid.h:94
IServiceHandler.h
IStaticServiceHandler::addObject
virtual void addObject(const UUID &, IObject *)=0
Adds an object to the static service handler.
IStaticServiceHandler::removeObject
virtual void removeObject(const UUID &)=0
Removes an object from the static service handler.
DEFINE_IID
#define DEFINE_IID(iface, u1, u2, u3, u4, u5, u6, u7, u8, u9, u10, u11)
Used to define the IID of an interface.
Definition: uuid.h:134