make designMode property available from js
[kdelibs.git] / kded / kctimefactory.h
blob167ae18e4d3088db26177616b4121d100343517d
1 /* This file is part of the KDE project
2 Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
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 version 2as published by the Free Software Foundation.
8 This library 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 GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
19 #ifndef KDED_KCTIME_FACTORY_H
20 #define KDED_KCTIME_FACTORY_H
22 #include <ksycocafactory.h>
23 #include <QtCore/QHash>
25 /**
26 * Service group factory for building ksycoca
27 * @internal
29 class KCTimeInfo : public KSycocaFactory
31 K_SYCOCAFACTORY( KST_CTimeInfo )
32 public:
33 /**
34 * Create factory
36 KCTimeInfo();
38 virtual ~KCTimeInfo();
40 /**
41 * Write out header information
43 virtual void saveHeader(QDataStream &str);
45 /**
46 * Write out data
48 virtual void save(QDataStream &str);
50 KSycocaEntry * createEntry(const QString &, const char *) const { return 0; }
51 KSycocaEntry * createEntry(int) const { return 0; }
53 void addCTime(const QString &path, quint32 ctime);
55 quint32 ctime(const QString &path);
57 typedef QHash<QString, quint32> Dict;
58 void fillCTimeDict(Dict &dict);
60 protected:
61 Dict ctimeDict;
62 int m_dictOffset;
65 #endif