VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h@ 23794

Last change on this file since 23794 was 21922, checked in by vboxsync, 15 years ago

Additions/x11: rename VBoxClient --autoresize to VBoxClient --display in preparation for making it handle mouse cursor switches too

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/** @file
2 *
3 * VirtualBox additions user session daemon.
4 */
5
6/*
7 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22#ifndef ___vboxclient_vboxclient_h
23# define ___vboxclient_vboxclient_h
24
25#include <iprt/cpputils.h>
26
27/** Namespace for VBoxClient-specific things */
28namespace VBoxClient {
29
30/** A simple class describing a service. VBoxClient will run exactly one
31 * service per invocation. */
32class Service : public stdx::non_copyable
33{
34public:
35 /** Get the services default path to pidfile, relative to $HOME */
36 virtual const char *getPidFilePath() = 0;
37 /** Run the service main loop */
38 virtual int run() = 0;
39 /** Clean up any global resources before we shut down hard */
40 virtual void cleanup() = 0;
41 /** Virtual destructor. Not used */
42 virtual ~Service() {}
43};
44
45extern Service *GetClipboardService();
46extern Service *GetSeamlessService();
47extern Service *GetDisplayService();
48
49extern void CleanUp();
50
51} /* namespace VBoxClient */
52
53#endif /* !___vboxclient_vboxclient_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette