kget
metalinkcreator.cpp
Go to the documentation of this file.
38 //TODO for 4.4 look at the changes of the newest Draft --> what elements have to be added/removed
84 connect(this, SIGNAL(currentPageChanged(KPageWidgetItem*,KPageWidgetItem*)), this, SLOT(slotUpdateAssistantButtons(KPageWidgetItem*,KPageWidgetItem*)));
87 connect(&m_thread, SIGNAL(fileResult(KGetMetalink::File)), this, SLOT(slotAddFile(KGetMetalink::File)));
188 uiIntroduction.save->setFilter("*.meta4|" + i18n("Metalink Version 4.0 file (*.meta4)") + "\n*.metalink|" + i18n("Metalink Version 3.0 file (*.metalink)"));
191 connect(uiIntroduction.save, SIGNAL(textChanged(QString)), this, SLOT(slotUpdateIntroductionNextButton()));
192 connect(uiIntroduction.load, SIGNAL(textChanged(QString)), this, SLOT(slotUpdateIntroductionNextButton()));
193 connect(uiIntroduction.loadButton, SIGNAL(toggled(bool)), this, SLOT(slotUpdateIntroductionNextButton()));
204 //check if a save location and if selected if also a load location has been specified and if the m_countrySort has been created
238 connect(uiFiles.files->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(slotUpdateFilesButtons()));
366 connect(fileDlg, SIGNAL(fileEdited(QString,QString)), this, SLOT(slotFileEdited(QString,QString)));
388 DragDlg *dragDlg = new DragDlg(&m_tempResources, &m_tempCommonData, m_countrySort, m_languageSort, this);
392 connect(dragDlg, SIGNAL(usedTypes(QStringList,bool)), this, SLOT(slotHandleDropped(QStringList,bool)));
398 m_thread.setData(m_handler->takeFiles(), types, createPartial, m_tempResources, m_tempCommonData);
void slotFiles(const QList< KUrl > &files)
The files the FileHandler should handle, the urls can also be urls to directories then the files of t...
Definition: filehandler.cpp:145
static bool load(const KUrl &destination, Metalink *metalink)
Loads destination into metalink.
Definition: metalinker.cpp:1232
void setupModelData(const QStringList &countryCodes)
Definition: localemodels.cpp:64
Gets the name and the size of the files of a list of urls, also enters directories recursively if nee...
Definition: filehandler.h:68
void load(const KGetMetalink::Metalink &metalink) const
Definition: generalwidget.cpp:37
QList< FileData > takeFiles()
Returns the handled files and clears the member, call this after finished is emitted.
Definition: filehandler.cpp:137
Definition: metalinkcreator.h:44
Definition: metalinker.h:239
Definition: filedlg.h:37
Definition: generalwidget.h:32
static bool save(const KUrl &destination, Metalink *metalink)
Saves metalink to destination.
Definition: metalinker.cpp:1296
void slotAddFile()
Adds m_tempFile to metalink and clears it for future reuse, also adds the filename to the filemodel...
Definition: metalinkcreator.cpp:277
Definition: dragdlg.h:37
void dragEnterEvent(QDragEnterEvent *event)
Definition: metalinkcreator.cpp:47
void slotFileEdited(const QString &oldFileName, const QString &newFileName)
This slot is used to update the filename in the filemodel if needed.
Definition: metalinkcreator.cpp:301
The following models are there to store the localized names and the codes of languages and countries ...
Definition: localemodels.h:35
MetalinkCreator(QWidget *parent=0)
Definition: metalinkcreator.cpp:71
void setupModelData(const QStringList &languageCodes)
Definition: localemodels.cpp:122
bool isValid() const
checks if the minimum requirements of a metalink are met
Definition: metalinker.cpp:687
void urlsDropped(const QList< KUrl > &files)
void slotHandleDropped(const QStringList &types, bool createPartial)
Handles the dropped files, calls dialogs if needed etc.
Definition: metalinkcreator.cpp:394
The LanguageModel stores localized names as well as the codes of languages.
Definition: localemodels.h:56
void setData(const QList< FileData > &files, const QStringList &types, bool createPartial, const KGetMetalink::Resources &tempResources, const KGetMetalink::CommonData &tempCommonData)
Definition: filehandler.cpp:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.