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

tdecore

  • tdecore
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 "tdeconfig.h"
23#include "tdelibs_export.h"
24
25class KDesktopFilePrivate;
26
34class TDECORE_EXPORT KDesktopFile : public TDEConfig
35{
36 TQ_OBJECT
37
38public:
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
207 TQString readDocPath() const;
208
213 TQStringList sortOrder() const;
214
225 KDesktopFile* copyTo(const TQString &file) const;
226
227#ifdef KDE_NO_COMPAT
228private:
229#endif
233 TDE_DEPRECATED TQString filename() const { return fileName(); };
234
235private:
236
237 TQString translatedEntry(const char*) const;
238
239 // copy-construction and assignment are not allowed
240 KDesktopFile( const KDesktopFile& );
241 KDesktopFile& operator= ( const KDesktopFile& );
242
243protected:
244 virtual void virtual_hook( int id, void* data );
245private:
246 KDesktopFilePrivate *d;
247};
248
249
250#endif
251
KDesktopFile
KDE Desktop File Management.
Definition: kdesktopfile.h:35
KDesktopFile::filename
TDE_DEPRECATED TQString filename() const
Definition: kdesktopfile.h:233
TDEConfig
Access KDE Configuration entries.
Definition: tdeconfig.h:44
TDEConfig::copyTo
TDEConfig * copyTo(const TQString &file, TDEConfig *config=0) const
Copies all entries from this config object to a new config object that will save itself to file.
Definition: tdeconfig.cpp:303

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.