You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.9 KiB
83 lines
2.9 KiB
15 years ago
|
/* This file is part of the KDE project
|
||
|
Copyright (C) 2005 Ian Reinhart Geiser <geiseri@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
15 years ago
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
15 years ago
|
*/
|
||
|
|
||
11 years ago
|
#ifndef TDEVPROJECTIFACE_H
|
||
|
#define TDEVPROJECTIFACE_H
|
||
15 years ago
|
|
||
|
#include <dcopobject.h>
|
||
15 years ago
|
#include <tqstringlist.h>
|
||
|
#include <tqmap.h>
|
||
15 years ago
|
|
||
11 years ago
|
class TDevProject;
|
||
15 years ago
|
|
||
|
/**
|
||
11 years ago
|
DCOP Interface for the @ref TDevProject object.
|
||
15 years ago
|
|
||
|
@author KDevelop Authors
|
||
|
*/
|
||
11 years ago
|
class TDevProjectIface : public TQObject, public DCOPObject
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
//
|
||
15 years ago
|
K_DCOP
|
||
|
public:
|
||
11 years ago
|
TDevProjectIface(TDevProject *prj);
|
||
15 years ago
|
|
||
11 years ago
|
~TDevProjectIface();
|
||
15 years ago
|
k_dcop:
|
||
15 years ago
|
void openProject(const TQString &dirName, const TQString &projectName);
|
||
15 years ago
|
void closeProject();
|
||
|
uint options() const;
|
||
15 years ago
|
TQString projectDirectory() const;
|
||
|
TQString projectName() const;
|
||
|
TQString mainProgram() const;
|
||
|
TQString runDirectory() const;
|
||
|
TQString activeDirectory() const;
|
||
|
TQString buildDirectory() const;
|
||
|
TQStringList allFiles() const;
|
||
|
TQStringList distFiles() const;
|
||
|
void addFiles(const TQStringList &fileList);
|
||
|
void addFile(const TQString &fileName);
|
||
|
void removeFiles(const TQStringList& fileList);
|
||
|
void removeFile(const TQString &fileName);
|
||
|
void changedFiles(const TQStringList &fileList);
|
||
|
void changedFile(const TQString &fileName);
|
||
|
bool isProjectFile(const TQString &absFileName);
|
||
|
TQString relativeProjectFile(const TQString &absFileName);
|
||
|
TQStringList symlinkProjectFiles();
|
||
15 years ago
|
|
||
|
// Project DOM access
|
||
14 years ago
|
TQString readEntry(const TQString &path, const TQString &defaultEntry = TQString());
|
||
15 years ago
|
int readIntEntry(const TQString &path, int defaultEntry = 0);
|
||
|
bool readBoolEntry(const TQString &path, bool defaultEntry = false);
|
||
|
TQStringList readListEntry(const TQString &path, const TQString &tag);
|
||
|
TQMap<TQString, TQString> readMapEntry(const TQString &path);
|
||
15 years ago
|
|
||
15 years ago
|
void writeEntry(const TQString &path, const TQString &value);
|
||
|
void writeIntEntry(const TQString &path, int value);
|
||
|
void writeBoolEntry( const TQString &path, bool value);
|
||
|
void writeListEntry(const TQString &path, const TQString &tag, const TQStringList &value);
|
||
|
void writeMapEntry(const TQString& path, const TQMap<TQString,TQString> &map);
|
||
15 years ago
|
|
||
|
private:
|
||
11 years ago
|
TDevProject *m_prj;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|