2
* Copyright 2013 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 2.1.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef CPROJECTFILE_H
19
#define CPROJECTFILE_H
24
namespace CordovaUbuntuProjectManager {
27
class CProjectFile: public Core::IDocument {
30
CProjectFile(CProject *parent, QString fileName);
33
bool save(QString *errorString, const QString &fileName, bool autoSave);
34
QString fileName() const;
35
void rename(const QString &newName);
37
QString defaultPath() const;
38
QString suggestedFileName() const;
39
QString mimeType() const;
41
bool isModified() const;
42
bool isSaveAsAllowed() const;
44
ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const;
45
bool reload(QString *errorString, ReloadFlag flag, ChangeType);
54
#endif // CPROJECTFILE_H