• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • TDevelop Interfaces Library
 

TDevelop Interfaces Library

  • lib
  • interfaces
kdevprojectiface.h
1 /* This file is part of the KDE project
2  Copyright (C) 2005 Ian Reinhart Geiser <geiseri@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
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.
13 
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 Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KDEVPROJECTIFACE_H
21 #define KDEVPROJECTIFACE_H
22 
23 #include <dcopobject.h>
24 #include <tqstringlist.h>
25 #include <tqmap.h>
26 
27 class KDevProject;
28 
34 class KDevProjectIface : public TQObject, public DCOPObject
35 {
36  Q_OBJECT
37 //
38  K_DCOP
39 public:
40  KDevProjectIface(KDevProject *prj);
41 
42  ~KDevProjectIface();
43 k_dcop:
44  void openProject(const TQString &dirName, const TQString &projectName);
45  void closeProject();
46  uint options() const;
47  TQString projectDirectory() const;
48  TQString projectName() const;
49  TQString mainProgram() const;
50  TQString runDirectory() const;
51  TQString activeDirectory() const;
52  TQString buildDirectory() const;
53  TQStringList allFiles() const;
54  TQStringList distFiles() const;
55  void addFiles(const TQStringList &fileList);
56  void addFile(const TQString &fileName);
57  void removeFiles(const TQStringList& fileList);
58  void removeFile(const TQString &fileName);
59  void changedFiles(const TQStringList &fileList);
60  void changedFile(const TQString &fileName);
61  bool isProjectFile(const TQString &absFileName);
62  TQString relativeProjectFile(const TQString &absFileName);
63  TQStringList symlinkProjectFiles();
64 
65  // Project DOM access
66  TQString readEntry(const TQString &path, const TQString &defaultEntry = TQString());
67  int readIntEntry(const TQString &path, int defaultEntry = 0);
68  bool readBoolEntry(const TQString &path, bool defaultEntry = false);
69  TQStringList readListEntry(const TQString &path, const TQString &tag);
70  TQMap<TQString, TQString> readMapEntry(const TQString &path);
71 
72  void writeEntry(const TQString &path, const TQString &value);
73  void writeIntEntry(const TQString &path, int value);
74  void writeBoolEntry( const TQString &path, bool value);
75  void writeListEntry(const TQString &path, const TQString &tag, const TQStringList &value);
76  void writeMapEntry(const TQString& path, const TQMap<TQString,TQString> &map);
77 
78  private:
79  KDevProject *m_prj;
80 };
81 
82 #endif
KDevProject
KDevelop project interface.
Definition: kdevproject.h:48
KDevProjectIface
DCOP Interface for the KDevProject object.
Definition: kdevprojectiface.h:34

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for TDevelop Interfaces Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.