• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDEPrint

cupsdcomment.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License version 2 as published by the Free Software Foundation.
00008  *
00009  *  This library is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *  Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this library; see the file COPYING.LIB.  If not, write to
00016  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  *  Boston, MA 02110-1301, USA.
00018  **/
00019 
00020 #ifndef CUPSDCOMMENT_H
00021 #define CUPSDCOMMENT_H
00022 
00023 #include <QtCore/QStringList>
00024 #include <QtCore/QHash>
00025 
00026 class QFile;
00027 
00028 #ifdef __GNUC__
00029 #warning rename class or remove from global namespace
00030 #endif
00031 class Comment
00032 {
00033 public:
00034     bool load(QFile* f);
00035     QString toolTip() const;
00036     QString comment() const;
00037     QString key() const;
00038 private:
00039     QString comment_;
00040     QString example_;
00041     QString key_;
00042 };
00043 
00044 #ifdef __GNUC__
00045 #warning rename class or remove from global namespace
00046 #endif
00047 class CupsdComment
00048 {
00049 public:
00050     QString operator[](const QString& key);
00051     QString comment(const QString& key);
00052     QString toolTip(const QString& key);
00053     ~CupsdComment();
00054 
00055 private:
00056     bool loadComments();
00057 
00058 private:
00059     QHash<QString, Comment*> comments_;
00060 };
00061 
00062 #endif

KDEPrint

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

API Reference

Skip menu "API Reference"
  •   KDEPrint
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal