2
* WengoPhone, a voice over Internet phone
3
* Copyright (C) 2004-2006 Wengo
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#include <system/owsystemdll.h>
25
#include <util/NonCopyable.h>
30
* Sets or not an application as a startup application.
32
* Statups the application when the Operating System is launched.
34
* @author Tanguy Krotoff
36
class Startup : NonCopyable {
40
* @param applicationName name of the application
42
* @param executablePath path to the executable
43
* (e.g C:/Program Files/Wengo/wengophone.exe -background)
45
OWSYSTEM_API Startup(const std::string & applicationName, const std::string & executablePath);
47
OWSYSTEM_API ~Startup();
50
* Sets an executable as an application startup.
52
* @param startup true if the application should start or not
53
* @return true if success, false otherwise
55
OWSYSTEM_API bool setStartup(bool startup = true);
58
* Gets if the executable is an application startup.
60
* @return true if an application startup, false otherwise
62
OWSYSTEM_API bool isStartup();
67
* Name of the application (e.g WengoPhone).
69
std::string _applicationName;
72
* Path of the executable (e.g C:/Program Files/Wengo/wengophone.exe)
74
std::string _executablePath;