Proof-reading.
[kdetoys.git] / amor / amortips.h
blob44c1c2eee824db8528126e08c21eb6e2ec89601d
1 /* amortips.h
2 **
3 ** Copyright (c) 1999 Martin R. Jones <mjones@kde.org>
4 **
5 */
7 /*
8 ** This program is free software; you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License as published by
10 ** the Free Software Foundation; either version 2 of the License, or
11 ** (at your option) any later version.
13 ** This program is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ** GNU General Public License for more details.
18 ** You should have received a copy of the GNU General Public License
19 ** along with this program in a file called COPYING; if not, write to
20 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21 ** MA 02110-1301, USA.
25 ** Bug reports and questions can be sent to kde-devel@kde.org
28 #ifndef AMORTIPS_H
29 #define AMORTIPS_H
31 #include <QtCore/QStringList>
33 class QFile;
35 //---------------------------------------------------------------------------
37 // AmorTips selects random tips from a data file
39 class AmorTips
41 public:
42 AmorTips();
44 bool setFile(const QString& file);
45 void reset();
46 QString tip();
48 protected:
49 bool readKTips();
50 bool read(const QString& file);
51 bool readTip(QFile &file);
53 protected:
54 QStringList mTips;
57 #endif // AMORTIPS_H