2
* This file is part of the PySide project.
4
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: PySide team <contact@pyside.org>
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
#ifndef PYSIDE_QPROPERTY_P_H
24
#define PYSIDE_QPROPERTY_P_H
27
#include <QMetaObject>
28
#include "pysideproperty.h"
30
struct PySideProperty;
35
struct PySidePropertyPrivate {
37
PySide::Property::MetaCallHandler metaCallHandler;
43
char* notifySignature;
56
namespace PySide { namespace Property {
59
* Init PySide QProperty support system
61
void init(PyObject* module);
64
* This function call reset property function
65
* This function does not check the property object type
67
* @param self The property object
68
* @param source The QObject witch has the property
69
* @return Return 0 if ok or -1 if this function fail
71
int reset(PySideProperty* self, PyObject* source);
75
* This function return the property type
76
* This function does not check the property object type
78
* @param self The property object
79
* @return Return the property type name
81
const char* getTypeName(const PySideProperty* self);
84
* This function check if property has read function
85
* This function does not check the property object type
87
* @param self The property object
88
* @return Return a boolean value
90
bool isReadable(const PySideProperty* self);
93
* This function check if property has write function
94
* This function does not check the property object type
96
* @param self The property object
97
* @return Return a boolean value
99
bool isWritable(const PySideProperty* self);
102
* This function check if property has reset function
103
* This function does not check the property object type
105
* @param self The property object
106
* @return Return a boolean value
108
bool hasReset(const PySideProperty* self);
111
* This function check if property has the flag DESIGNABLE setted
112
* This function does not check the property object type
114
* @param self The property object
115
* @return Return a boolean value
117
bool isDesignable(const PySideProperty* self);
120
* This function check if property has the flag SCRIPTABLE setted
121
* This function does not check the property object type
123
* @param self The property object
124
* @return Return a boolean value
126
bool isScriptable(const PySideProperty* self);
129
* This function check if property has the flag STORED setted
130
* This function does not check the property object type
132
* @param self The property object
133
* @return Return a boolean value
135
bool isStored(const PySideProperty* self);
138
* This function check if property has the flag USER setted
139
* This function does not check the property object type
141
* @param self The property object
142
* @return Return a boolean value
144
bool isUser(const PySideProperty* self);
147
* This function check if property has the flag CONSTANT setted
148
* This function does not check the property object type
150
* @param self The property object
151
* @return Return a boolean value
153
bool isConstant(const PySideProperty* self);
156
* This function check if property has the flag FINAL setted
157
* This function does not check the property object type
159
* @param self The property object
160
* @return Return a boolean value
162
bool isFinal(const PySideProperty* self);
164
} // namespace Property
165
} // namespace PySide