2
Copyright (C) 2005 by Nicolas Escuder <n.escuder@intra-links.com>
3
Copyright (C) 2001 by smeier@kdevelop.org
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
version 2, License as published by the Free Software Foundation.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
17
Boston, MA 02110-1301, USA.
20
#ifndef PHPCONFIGDATA_H
21
#define PHPCONFIGDATA_H
31
class PHPConfigData : public QObject {
38
enum InvocationMode {Web=1,Shell=2};
39
enum StartupFileMode {Current=1,Default=2};
41
PHPConfigData(QDomDocument* document);
44
/** returns true if the configuration is ok, false if something is missing
46
bool validateConfig();
47
/** write the configuration to the DOM document(project file)
51
InvocationMode getInvocationMode() {
52
return invocationMode;
55
void setInvocationMode(InvocationMode mode) {
56
invocationMode = mode;
63
void setWebURL(QString weburl) {
68
QString getPHPExecPath() {
72
void setPHPExePath(QString path) {
77
QString getPHPIniPath() {
81
void setPHPIniPath(QString path) {
86
QString getPHPIncludePath() {
87
return phpIncludePath;
89
void setPHPIncludePath(QString path) {
90
phpIncludePath = path;
93
QString getStartupFile() {
94
return phpStartupFile;
96
void setStartupFile(QString defaultFile) {
97
phpStartupFile = defaultFile;
100
StartupFileMode getStartupFileMode() {
101
return phpStartupFileMode;
104
void setStartupFileMode(StartupFileMode mode) {
105
phpStartupFileMode = mode;
109
void setCodeCompletion(bool enable) {
110
m_codeCompletion = enable;
113
bool getCodeCompletion() {
114
return m_codeCompletion;
117
void setCodeHinting(bool enable) {
118
m_codeHinting = enable;
121
bool getCodeHinting() {
122
return m_codeHinting;
125
void setRealtimeParsing(bool enable) {
126
m_realtimeParsing = enable;
129
bool getRealtimeParsing() {
130
return m_realtimeParsing;
134
QDomDocument* document;
135
InvocationMode invocationMode;
142
QString phpStartupFile;
145
QString phpIncludePath;
146
QString phpDefaultFile;
147
StartupFileMode phpStartupFileMode;
150
bool m_codeCompletion;
152
bool m_realtimeParsing;