Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

oresource.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (C) 2005 Dan Williams <drw@handhelds.org>
00005                              Copyright (C) 2003 Michael Lauer <mickey@tm.informatik.uni-frankfurt.de>
00006                              Copyright (C) 2003 Patrick S. Vogt <tille@handhelds.org>
00007               =.
00008             .=l.
00009            .>+-=
00010  _;:,     .>    :=|.         This program is free software; you can
00011 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00012 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00013 .="- .-=="i,     .._         License as published by the Free Software
00014  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00015      ._= =}       :          or (at your option) any later version.
00016     .%`+i>       _;_.
00017     .i_,=:_.      -<s.       This program is distributed in the hope that
00018      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00019     : ..    .:,     . . .    without even the implied warranty of
00020     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00021   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00022 ..}^=.=       =       ;      Library General Public License for more
00023 ++=   -.     .`     .:       details.
00024  :     =  ...= . :.=-
00025  -.   .:....=;==+<;          You should have received a copy of the GNU
00026   -_. . .   )=.  =           Library General Public License along with
00027     --        :-=`           this library; see the file COPYING.LIB.
00028                              If not, write to the Free Software Foundation,
00029                              Inc., 59 Temple Place - Suite 330,
00030                              Boston, MA 02111-1307, USA.
00031 */
00032 
00033 #ifndef ORESOURCE_H
00034 #define ORESOURCE_H
00035 
00036 #include <qimage.h>
00037 #include <qpixmap.h>
00038 
00039 namespace Opie {
00040 namespace Core {
00041 
00042 class OResource
00043 {
00044     public:
00057         enum Scale { NoScale = 0, SmallIcon, BigIcon };
00058 
00062         OResource() {}
00063 
00073         static QImage loadImage( const QString &name, Scale scale = NoScale );
00074 
00084         static QPixmap loadPixmap( const QString &name, Scale scale = NoScale );
00085 
00095         static QString findPixmap( const QString &name );
00096 };
00097 
00098 } // namespace Core
00099 } // namespace Opie
00100 
00101 #endif

Generated on Sat Nov 5 16:16:10 2005 for OPIE by  doxygen 1.4.2