KFile
kfilemodule.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "kfilemodule.h"
00021 #include "kfilewidget.h"
00022 #include "kdirselectdialog.h"
00023
00024 #include <kgenericfactory.h>
00025 #include <kpluginfactory.h>
00026
00027 K_PLUGIN_FACTORY(KFileModuleFactory, registerPlugin<KFileModule>();)
00028 K_EXPORT_PLUGIN(KFileModuleFactory("kfilemodule"))
00029
00030 KFileModule::KFileModule(QObject* parent, const QVariantList&)
00031 : KAbstractFileModule(parent)
00032 {
00033 }
00034
00035 QWidget* KFileModule::createFileWidget(const KUrl& startDir, QWidget *parent)
00036 {
00037 return new KFileWidget(startDir, parent);
00038 }
00039
00040 KUrl KFileModule::getStartUrl( const KUrl& startDir, QString& recentDirClass )
00041 {
00042 return KFileWidget::getStartUrl(startDir, recentDirClass);
00043 }
00044
00045 void KFileModule::setStartDir( const KUrl& directory )
00046 {
00047 KFileWidget::setStartDir(directory);
00048 }
00049
00050 KUrl KFileModule::selectDirectory( const KUrl& startDir,
00051 bool localOnly, QWidget *parent,
00052 const QString& caption )
00053 {
00054 return KDirSelectDialog::selectDirectory(startDir, localOnly, parent, caption);
00055 }
00056
00057 #include "kfilemodule.moc"