• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

  • kdecore
kdesktopfile.h
1 /* This file is part of the KDE libraries
2  Copyright (c) 1999 Pietro Iglio <iglio@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 #ifndef _KDESKTOPFILE_H
20 #define _KDESKTOPFILE_H
21 
22 #include "kconfig.h"
23 #include "kdelibs_export.h"
24 
25 class KDesktopFilePrivate;
26 
34 class KDECORE_EXPORT KDesktopFile : public KConfig
35 {
36  Q_OBJECT
37 
38 public:
51  KDesktopFile( const TQString &fileName, bool readOnly = false,
52  const char * resType = "apps");
53 
59  virtual ~KDesktopFile();
60 
70  static bool isDesktopFile(const TQString& path);
71 
81  static bool isAuthorizedDesktopFile(const TQString& path);
82 
88  static TQString locateLocal(const TQString &path);
89 
94  TQString readType() const;
95 
100  TQString readIcon() const;
101 
106  TQString readName() const;
107 
112  TQString readComment() const;
113 
118  TQString readGenericName() const;
119 
124  TQString readPath() const;
125 
130  TQString readDevice() const;
131 
136  TQString readURL() const;
137 
142  TQStringList readActions() const;
143 
148  void setActionGroup(const TQString &group);
149 
155  bool hasActionGroup(const TQString &group) const;
156 
163  bool hasLinkType() const;
164 
169  bool hasApplicationType() const;
170 
175  bool hasMimeTypeType() const; // funny name :)
176 
181  bool hasDeviceType() const;
182 
188  bool tryExec() const;
189 
194  TQString fileName() const;
195 
200  TQString resource() const;
201 
209  TQString readDocPath() const;
210 
215  TQStringList sortOrder() const;
216 
227  KDesktopFile* copyTo(const TQString &file) const;
228 
229 #ifdef KDE_NO_COMPAT
230 private:
231 #endif
232 
235  KDE_DEPRECATED TQString filename() const { return fileName(); };
236 
237 private:
238 
239  TQString translatedEntry(const char*) const;
240 
241  // copy-construction and assignment are not allowed
242  KDesktopFile( const KDesktopFile& );
243  KDesktopFile& operator= ( const KDesktopFile& );
244 
245 protected:
246  virtual void virtual_hook( int id, void* data );
247 private:
248  KDesktopFilePrivate *d;
249 };
250 
251 
252 #endif
253 
KDesktopFile
KDE Desktop File Management.
Definition: kdesktopfile.h:34
KConfig
Access KDE Configuration entries.
Definition: kconfig.h:43
KDesktopFile::filename
KDE_DEPRECATED TQString filename() const
Definition: kdesktopfile.h:235
KConfig::copyTo
KConfig * copyTo(const TQString &file, KConfig *config=0) const
Copies all entries from this config object to a new config object that will save itself to file...
Definition: kconfig.cpp:303

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |