Qtopia library API Documentation

styleinterface.h

00001 /**********************************************************************
00002 ** Copyright (C) 2002 Robert Griebl.  All rights reserved.
00003 **
00004 ** This file is part of OPIE (http://www.opie.info).
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 **********************************************************************/
00015 
00016 #ifndef STYLEINTERFACE_H
00017 #define STYLEINTERFACE_H
00018 
00019 #include <qpe/qcom.h>
00020 
00021 #ifndef QT_NO_COMPONENT
00022 
00023 // {17AF792C-E461-49A9-9B71-068B9A8DDAE4}
00024 #ifndef IID_Style
00025 #define IID_Style QUuid( 0x17af792c, 0xe461, 0x49a9, 0x9b, 0x71, 0x06, 0x8b, 0x9a, 0x8d, 0xda, 0xe4)
00026 #endif
00027 
00028 // {6C33B4F9-D529-453A-8FB3-DA42B21872BD}
00029 # ifndef IID_StyleExtended
00030 #  define IID_StyleExtended QUuid( 0x6c33b4f9, 0xd529, 0x453a, 0x8f, 0xb3, 0xda, 0x42, 0xb2, 0x18, 0x72, 0xbd)
00031 #endif
00032 
00033 #endif
00034 
00035 class QWidget;
00036 class QStyle;
00037 
00038 
00039 class QStyle;
00040 
00041 struct StyleInterface : public QUnknownInterface
00042 {
00044     virtual QStyle *style() = 0;
00046     virtual QString name() const = 0;
00047 };
00048 
00049 struct StyleExtendedInterface : public StyleInterface
00050 {
00052     virtual QString description ( ) const = 0;
00053 
00055     virtual bool hasSettings ( ) const = 0;
00056 
00058     virtual QWidget *create ( QWidget *parent, const char *name = 0 ) = 0;
00059 
00061     virtual bool accept ( ) = 0;
00062 
00064     virtual void reject ( ) = 0;
00065 };
00066 
00067 #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:08 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001