File indexing completed on 2024-04-21 04:01:30
0001 /* 0002 * Copyright 1999 by Martin R. Jones <mjones@kde.org> 0003 * Copyright 2010 by Stefan Böhmann <kde@hilefoks.org> 0004 * 0005 * This program is free software; you can redistribute it and/or modify 0006 * it under the terms of the GNU General Public License as published by 0007 * the Free Software Foundation; either version 2 of the License, or 0008 * (at your option) any later version. 0009 * 0010 * This program is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 * GNU General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU General Public License 0016 * along with this program; if not, write to the Free Software 0017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0018 */ 0019 #ifndef QUEUEITEM_H 0020 #define QUEUEITEM_H 0021 0022 #include <QString> 0023 0024 0025 class QueueItem 0026 { 0027 public: 0028 enum ItemType { Talk , Tip }; 0029 0030 QueueItem(ItemType type, const QString &text, int time = -1); 0031 0032 ItemType type(); 0033 QString text(); 0034 int time(); 0035 0036 void setTime(int newTime); 0037 0038 private: 0039 ItemType m_type; 0040 QString m_text; 0041 int m_time; 0042 }; 0043 0044 #endif 0045 0046 // kate: word-wrap off; encoding utf-8; indent-width 4; tab-width 4; line-numbers on; mixed-indent off; remove-trailing-space-save on; replace-tabs-save on; replace-tabs on; space-indent on; 0047 // vim:set spell et sw=4 ts=4 nowrap cino=l1,cs,U1: