1 | /**********************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2005-2007 Trolltech ASA. All rights reserved.
|
---|
4 | **
|
---|
5 | ** This file is part of Qt Designer.
|
---|
6 | **
|
---|
7 | ** This file may be distributed and/or modified under the terms of the
|
---|
8 | ** GNU General Public License version 2 as published by the Free Software
|
---|
9 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
10 | ** packaging of this file.
|
---|
11 | **
|
---|
12 | ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
|
---|
13 | ** licenses may use this file in accordance with the Qt Commercial License
|
---|
14 | ** Agreement provided with the Software.
|
---|
15 | **
|
---|
16 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
---|
17 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
18 | **
|
---|
19 | ** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
---|
20 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
---|
21 | ** information about Qt Commercial License Agreements.
|
---|
22 | **
|
---|
23 | ** Contact info@trolltech.com if any conditions of this licensing are
|
---|
24 | ** not clear to you.
|
---|
25 | **
|
---|
26 | **********************************************************************/
|
---|
27 |
|
---|
28 | #ifndef PREFERENCEINTERFACEIMPL_H
|
---|
29 | #define PREFERENCEINTERFACEIMPL_H
|
---|
30 |
|
---|
31 | #include <preferenceinterface.h>
|
---|
32 | class QWidget;
|
---|
33 |
|
---|
34 | class PreferenceInterfaceImpl : public PreferenceInterface
|
---|
35 | {
|
---|
36 | public:
|
---|
37 | PreferenceInterfaceImpl( QUnknownInterface *outer = 0 );
|
---|
38 | virtual ~PreferenceInterfaceImpl();
|
---|
39 |
|
---|
40 | ulong addRef();
|
---|
41 | ulong release();
|
---|
42 |
|
---|
43 | QRESULT queryInterface( const QUuid&, QUnknownInterface** );
|
---|
44 |
|
---|
45 | Preference *preference();
|
---|
46 | void connectTo( QUnknownInterface * ) {}
|
---|
47 | void deletePreferenceObject( Preference * );
|
---|
48 |
|
---|
49 | private:
|
---|
50 | QUnknownInterface *parent;
|
---|
51 | int ref;
|
---|
52 | QWidget *cppEditorSyntax;
|
---|
53 |
|
---|
54 | };
|
---|
55 |
|
---|
56 | #endif
|
---|
57 |
|
---|