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
00026 typedef KGenericFactory<KFileModule> KFileModuleFactory;
00027 Q_EXPORT_PLUGIN( KFileModuleFactory("kfile") )
00028
00029 KFileModule::KFileModule(QObject* parent, const QStringList&)
00030 : KAbstractFileModule(parent)
00031 {
00032 }
00033
00034 QWidget* KFileModule::createFileWidget(const KUrl& startDir, QWidget *parent)
00035 {
00036 return new KFileWidget(startDir, parent);
00037 }
00038
00039 KUrl KFileModule::getStartUrl( const KUrl& startDir, QString& recentDirClass )
00040 {
00041 return KFileWidget::getStartUrl(startDir, recentDirClass);
00042 }
00043
00044 void KFileModule::setStartDir( const KUrl& directory )
00045 {
00046 KFileWidget::setStartDir(directory);
00047 }
00048
00049 KUrl KFileModule::selectDirectory( const KUrl& startDir,
00050 bool localOnly, QWidget *parent,
00051 const QString& caption )
00052 {
00053 return KDirSelectDialog::selectDirectory(startDir, localOnly, parent, caption);
00054 }
00055
00056 #include "kfilemodule.moc"