Qtopia library API Documentation

fontdatabase.h

00001 /**********************************************************************
00002 ** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of the Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 #ifndef FONTFACTORY_H
00021 #define FONTFACTORY_H
00022 
00023 #include <qpe/fontfactoryinterface.h>
00024 
00025 #include <qfontdatabase.h>
00026 #include <qvaluelist.h>
00027 
00028 class QLibrary;
00029 
00030 struct FontFactory
00031 {
00032 #ifndef QT_NO_COMPONENT
00033     QLibrary *library;
00034 #endif
00035     FontFactoryInterface *interface;
00036     QFontFactory *factory;
00037 };
00038 
00039 #undef QT_NO_FONTDATABASE
00040 class FontDatabase
00041 #ifndef QT_NO_FONTDATABASE
00042     : public QFontDatabase
00043 #endif
00044 {
00045 public:
00046     FontDatabase();
00047 
00048     // minimal functionality
00049     QStringList families () const;
00050 #ifdef QT_NO_FONTDATABASE
00051     static QValueList<int> standardSizes ();
00052 #endif
00053 
00054     static void loadRenderers();
00055 
00056 private:
00057     static void readFonts( QFontFactory *factory );
00058 
00059 private:
00060     static QValueList<FontFactory> *factoryList;
00061 };
00062 
00063 #endif
KDE Logo
This file is part of the documentation for OPIE Version 1.5.5.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:05 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001