~vcs-imports/wengophone/trunk

« back to all changes in this revision

Viewing changes to libs/util/system/include/system/Startup.h

  • Committer: tanguy_k
  • Date: 2006-11-15 14:12:35 UTC
  • Revision ID: vcs-imports@canonical.com-20061115141235-6efc6e38eaa40ca0
* (compilation fix) OWBuild: rename portaudio to PORTAUDIO
* Libutil has only one include path now -> faster compilation
* Remove old directories
* (compilation fix) phapi: ph_msession_stopped() was a macro inside phmedia.h, now it is a standard function. Don't know why but it was not compiling under Windows using CMake

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * WengoPhone, a voice over Internet phone
3
 
 * Copyright (C) 2004-2006  Wengo
4
 
 *
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.
9
 
 *
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.
14
 
 *
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
18
 
 */
19
 
 
20
 
#ifndef OWSTARTUP_H
21
 
#define OWSTARTUP_H
22
 
 
23
 
#include <system/owsystemdll.h>
24
 
 
25
 
#include <util/NonCopyable.h>
26
 
 
27
 
#include <string>
28
 
 
29
 
/**
30
 
 * Sets or not an application as a startup application.
31
 
 *
32
 
 * Statups the application when the Operating System is launched.
33
 
 *
34
 
 * @author Tanguy Krotoff
35
 
 */
36
 
class Startup : NonCopyable {
37
 
public:
38
 
 
39
 
        /**
40
 
         * @param applicationName name of the application
41
 
         *        (e.g WengoPhone)
42
 
         * @param executablePath path to the executable
43
 
         *        (e.g C:/Program Files/Wengo/wengophone.exe -background)
44
 
         */
45
 
        OWSYSTEM_API Startup(const std::string & applicationName, const std::string & executablePath);
46
 
 
47
 
        OWSYSTEM_API ~Startup();
48
 
 
49
 
        /**
50
 
         * Sets an executable as an application startup.
51
 
         *
52
 
         * @param startup true if the application should start or not
53
 
         * @return true if success, false otherwise
54
 
         */
55
 
        OWSYSTEM_API bool setStartup(bool startup = true);
56
 
 
57
 
        /**
58
 
         * Gets if the executable is an application startup.
59
 
         *
60
 
         * @return true if an application startup, false otherwise
61
 
         */
62
 
        OWSYSTEM_API bool isStartup();
63
 
 
64
 
private:
65
 
 
66
 
        /**
67
 
         * Name of the application (e.g WengoPhone).
68
 
         */
69
 
        std::string _applicationName;
70
 
 
71
 
        /**
72
 
         * Path of the executable (e.g C:/Program Files/Wengo/wengophone.exe)
73
 
         */
74
 
        std::string _executablePath;
75
 
};
76
 
 
77
 
#endif  //OWSTARTUP_H