1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
|
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./qt5integration/platformthemeplugin/xmls/com.deepin.filemanager.filedialog.xml -a ./qt5integration/toolGenerate/qdbusxml2cpp/com.deepin.filemanager.filedialogAdaptor -i ./qt5integration/toolGenerate/qdbusxml2cpp/com.deepin.filemanager.filedialog.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./qt5integration/toolGenerate/qdbusxml2cpp/com.deepin.filemanager.filedialogAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class FiledialogAdaptor
*/
FiledialogAdaptor::FiledialogAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
FiledialogAdaptor::~FiledialogAdaptor()
{
// destructor
}
int FiledialogAdaptor::acceptMode() const
{
// get the value of property acceptMode
return qvariant_cast< int >(parent()->property("acceptMode"));
}
void FiledialogAdaptor::setAcceptMode(int value)
{
// set the value of property acceptMode
parent()->setProperty("acceptMode", QVariant::fromValue(value));
}
QString FiledialogAdaptor::directory() const
{
// get the value of property directory
return qvariant_cast< QString >(parent()->property("directory"));
}
void FiledialogAdaptor::setDirectory(const QString &value)
{
// set the value of property directory
parent()->setProperty("directory", QVariant::fromValue(value));
}
QString FiledialogAdaptor::directoryUrl() const
{
// get the value of property directoryUrl
return qvariant_cast< QString >(parent()->property("directoryUrl"));
}
void FiledialogAdaptor::setDirectoryUrl(const QString &value)
{
// set the value of property directoryUrl
parent()->setProperty("directoryUrl", QVariant::fromValue(value));
}
int FiledialogAdaptor::filter() const
{
// get the value of property filter
return qvariant_cast< int >(parent()->property("filter"));
}
void FiledialogAdaptor::setFilter(int value)
{
// set the value of property filter
parent()->setProperty("filter", QVariant::fromValue(value));
}
int FiledialogAdaptor::heartbeatInterval() const
{
// get the value of property heartbeatInterval
return qvariant_cast< int >(parent()->property("heartbeatInterval"));
}
void FiledialogAdaptor::setHeartbeatInterval(int value)
{
// set the value of property heartbeatInterval
parent()->setProperty("heartbeatInterval", QVariant::fromValue(value));
}
bool FiledialogAdaptor::hideOnAccept() const
{
// get the value of property hideOnAccept
return qvariant_cast< bool >(parent()->property("hideOnAccept"));
}
void FiledialogAdaptor::setHideOnAccept(bool value)
{
// set the value of property hideOnAccept
parent()->setProperty("hideOnAccept", QVariant::fromValue(value));
}
QStringList FiledialogAdaptor::nameFilters() const
{
// get the value of property nameFilters
return qvariant_cast< QStringList >(parent()->property("nameFilters"));
}
void FiledialogAdaptor::setNameFilters(const QStringList &value)
{
// set the value of property nameFilters
parent()->setProperty("nameFilters", QVariant::fromValue(value));
}
int FiledialogAdaptor::viewMode() const
{
// get the value of property viewMode
return qvariant_cast< int >(parent()->property("viewMode"));
}
void FiledialogAdaptor::setViewMode(int value)
{
// set the value of property viewMode
parent()->setProperty("viewMode", QVariant::fromValue(value));
}
bool FiledialogAdaptor::windowActive() const
{
// get the value of property windowActive
return qvariant_cast< bool >(parent()->property("windowActive"));
}
uint FiledialogAdaptor::windowFlags() const
{
// get the value of property windowFlags
return qvariant_cast< uint >(parent()->property("windowFlags"));
}
void FiledialogAdaptor::setWindowFlags(uint value)
{
// set the value of property windowFlags
parent()->setProperty("windowFlags", QVariant::fromValue(value));
}
void FiledialogAdaptor::accept()
{
// handle method call com.deepin.filemanager.filedialog.accept
QMetaObject::invokeMethod(parent(), "accept");
}
void FiledialogAdaptor::activateWindow()
{
// handle method call com.deepin.filemanager.filedialog.activateWindow
QMetaObject::invokeMethod(parent(), "activateWindow");
}
void FiledialogAdaptor::addCustomWidget(int type, const QString &data)
{
// handle method call com.deepin.filemanager.filedialog.addCustomWidget
QMetaObject::invokeMethod(parent(), "addCustomWidget", Q_ARG(int, type), Q_ARG(QString, data));
}
void FiledialogAdaptor::addDisableUrlScheme(const QString &type)
{
// handle method call com.deepin.filemanager.filedialog.addDisableUrlScheme
QMetaObject::invokeMethod(parent(), "addDisableUrlScheme", Q_ARG(QString, type));
}
QMap<QString,QVariant> FiledialogAdaptor::allCustomWidgetsValue(int type)
{
// handle method call com.deepin.filemanager.filedialog.allCustomWidgetsValue
QMap<QString,QVariant> values;
QMetaObject::invokeMethod(parent(), "allCustomWidgetsValue", Q_RETURN_ARG(QMap<QString,QVariant>, values), Q_ARG(int, type));
return values;
}
void FiledialogAdaptor::beginAddCustomWidget()
{
// handle method call com.deepin.filemanager.filedialog.beginAddCustomWidget
QMetaObject::invokeMethod(parent(), "beginAddCustomWidget");
}
void FiledialogAdaptor::deleteLater()
{
// handle method call com.deepin.filemanager.filedialog.deleteLater
QMetaObject::invokeMethod(parent(), "deleteLater");
}
void FiledialogAdaptor::endAddCustomWidget()
{
// handle method call com.deepin.filemanager.filedialog.endAddCustomWidget
QMetaObject::invokeMethod(parent(), "endAddCustomWidget");
}
QDBusVariant FiledialogAdaptor::getCustomWidgetValue(int type, const QString &text)
{
// handle method call com.deepin.filemanager.filedialog.getCustomWidgetValue
QDBusVariant value;
QMetaObject::invokeMethod(parent(), "getCustomWidgetValue", Q_RETURN_ARG(QDBusVariant, value), Q_ARG(int, type), Q_ARG(QString, text));
return value;
}
void FiledialogAdaptor::hide()
{
// handle method call com.deepin.filemanager.filedialog.hide
QMetaObject::invokeMethod(parent(), "hide");
}
QString FiledialogAdaptor::labelText(int label)
{
// handle method call com.deepin.filemanager.filedialog.labelText
QString text;
QMetaObject::invokeMethod(parent(), "labelText", Q_RETURN_ARG(QString, text), Q_ARG(int, label));
return text;
}
void FiledialogAdaptor::makeHeartbeat()
{
// handle method call com.deepin.filemanager.filedialog.makeHeartbeat
QMetaObject::invokeMethod(parent(), "makeHeartbeat");
}
void FiledialogAdaptor::open()
{
// handle method call com.deepin.filemanager.filedialog.open
QMetaObject::invokeMethod(parent(), "open");
}
int FiledialogAdaptor::options()
{
// handle method call com.deepin.filemanager.filedialog.options
int options;
QMetaObject::invokeMethod(parent(), "options", Q_RETURN_ARG(int, options));
return options;
}
void FiledialogAdaptor::reject()
{
// handle method call com.deepin.filemanager.filedialog.reject
QMetaObject::invokeMethod(parent(), "reject");
}
void FiledialogAdaptor::selectFile(const QString &filename)
{
// handle method call com.deepin.filemanager.filedialog.selectFile
QMetaObject::invokeMethod(parent(), "selectFile", Q_ARG(QString, filename));
}
void FiledialogAdaptor::selectNameFilter(const QString &filter)
{
// handle method call com.deepin.filemanager.filedialog.selectNameFilter
QMetaObject::invokeMethod(parent(), "selectNameFilter", Q_ARG(QString, filter));
}
void FiledialogAdaptor::selectNameFilterByIndex(int index)
{
// handle method call com.deepin.filemanager.filedialog.selectNameFilterByIndex
QMetaObject::invokeMethod(parent(), "selectNameFilterByIndex", Q_ARG(int, index));
}
void FiledialogAdaptor::selectUrl(const QString &url)
{
// handle method call com.deepin.filemanager.filedialog.selectUrl
QMetaObject::invokeMethod(parent(), "selectUrl", Q_ARG(QString, url));
}
QStringList FiledialogAdaptor::selectedFiles()
{
// handle method call com.deepin.filemanager.filedialog.selectedFiles
QStringList filelist;
QMetaObject::invokeMethod(parent(), "selectedFiles", Q_RETURN_ARG(QStringList, filelist));
return filelist;
}
QString FiledialogAdaptor::selectedNameFilter()
{
// handle method call com.deepin.filemanager.filedialog.selectedNameFilter
QString filter;
QMetaObject::invokeMethod(parent(), "selectedNameFilter", Q_RETURN_ARG(QString, filter));
return filter;
}
int FiledialogAdaptor::selectedNameFilterIndex()
{
// handle method call com.deepin.filemanager.filedialog.selectedNameFilterIndex
int index;
QMetaObject::invokeMethod(parent(), "selectedNameFilterIndex", Q_RETURN_ARG(int, index));
return index;
}
QStringList FiledialogAdaptor::selectedUrls()
{
// handle method call com.deepin.filemanager.filedialog.selectedUrls
QStringList urllist;
QMetaObject::invokeMethod(parent(), "selectedUrls", Q_RETURN_ARG(QStringList, urllist));
return urllist;
}
void FiledialogAdaptor::setAllowMixedSelection(bool on)
{
// handle method call com.deepin.filemanager.filedialog.setAllowMixedSelection
QMetaObject::invokeMethod(parent(), "setAllowMixedSelection", Q_ARG(bool, on));
}
void FiledialogAdaptor::setCurrentInputName(const QString &name)
{
// handle method call com.deepin.filemanager.filedialog.setCurrentInputName
QMetaObject::invokeMethod(parent(), "setCurrentInputName", Q_ARG(QString, name));
}
void FiledialogAdaptor::setFileMode(int fileMode)
{
// handle method call com.deepin.filemanager.filedialog.setFileMode
QMetaObject::invokeMethod(parent(), "setFileMode", Q_ARG(int, fileMode));
}
void FiledialogAdaptor::setLabelText(int label, const QString &text)
{
// handle method call com.deepin.filemanager.filedialog.setLabelText
QMetaObject::invokeMethod(parent(), "setLabelText", Q_ARG(int, label), Q_ARG(QString, text));
}
void FiledialogAdaptor::setOption(int option, bool on)
{
// handle method call com.deepin.filemanager.filedialog.setOption
QMetaObject::invokeMethod(parent(), "setOption", Q_ARG(int, option), Q_ARG(bool, on));
}
void FiledialogAdaptor::setOptions(int options)
{
// handle method call com.deepin.filemanager.filedialog.setOptions
QMetaObject::invokeMethod(parent(), "setOptions", Q_ARG(int, options));
}
void FiledialogAdaptor::setWindowTitle(const QString &title)
{
// handle method call com.deepin.filemanager.filedialog.setWindowTitle
QMetaObject::invokeMethod(parent(), "setWindowTitle", Q_ARG(QString, title));
}
void FiledialogAdaptor::show()
{
// handle method call com.deepin.filemanager.filedialog.show
QMetaObject::invokeMethod(parent(), "show");
}
bool FiledialogAdaptor::testOption(int option)
{
// handle method call com.deepin.filemanager.filedialog.testOption
bool on;
QMetaObject::invokeMethod(parent(), "testOption", Q_RETURN_ARG(bool, on), Q_ARG(int, option));
return on;
}
qulonglong FiledialogAdaptor::winId()
{
// handle method call com.deepin.filemanager.filedialog.winId
qulonglong windowId;
QMetaObject::invokeMethod(parent(), "winId", Q_RETURN_ARG(qulonglong, windowId));
return windowId;
}
|