summaryrefslogtreecommitdiffstats
path: root/kanagram/src/newstuffdialog.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /kanagram/src/newstuffdialog.cpp
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kanagram/src/newstuffdialog.cpp')
-rw-r--r--kanagram/src/newstuffdialog.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/kanagram/src/newstuffdialog.cpp b/kanagram/src/newstuffdialog.cpp
new file mode 100644
index 00000000..d58ad56d
--- /dev/null
+++ b/kanagram/src/newstuffdialog.cpp
@@ -0,0 +1,35 @@
+#include "newstuffdialog.h"
+
+#include <knewstuff/knewstuff.h>
+#include <knewstuff/entry.h>
+#include <klocale.h>
+#include <kio/netaccess.h>
+#include <kurl.h>
+#include <kstandarddirs.h>
+
+#include "kanagramsettings.h"
+
+NewStuffDialog::NewStuffDialog() : KNewStuff("kanagram/vocabulary", "http://kde-edu.org/kanagram/" + KanagramSettings::dataLanguage() + ".xml")
+{
+}
+
+NewStuffDialog::~NewStuffDialog()
+{
+}
+
+bool NewStuffDialog::install(const QString &fileName)
+{
+ return false;
+}
+
+QString NewStuffDialog::downloadDestination(KNS::Entry *entry)
+{
+ QString fileName = entry->payload().path();
+ fileName = fileName.section('/', -1);
+ return KGlobal::dirs()->saveLocation("data", "kanagram/data/" + KanagramSettings::dataLanguage()) + fileName;
+}
+
+bool NewStuffDialog::createUploadFile(const QString &fileName)
+{
+ return false;
+}