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>
26 * Service group factory for building ksycoca
29 class KCTimeInfo
: public KSycocaFactory
31 K_SYCOCAFACTORY( KST_CTimeInfo
)
38 virtual ~KCTimeInfo();
41 * Write out header information
43 virtual void saveHeader(QDataStream
&str
);
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
);