summaryrefslogtreecommitdiffstats
path: root/src/kbfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kbfile.cpp')
-rwxr-xr-xsrc/kbfile.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/kbfile.cpp b/src/kbfile.cpp
new file mode 100755
index 0000000..39d4095
--- /dev/null
+++ b/src/kbfile.cpp
@@ -0,0 +1,59 @@
+/***************************************************************************
+ kbfile.cpp - description
+ -------------------
+ begin : Die Sep 23 2003
+ copyright : (C) 2003 by mkulke
+ email : sikor_sxe@radicalapproach.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+// enable > 2gb support (LFS)
+
+#define _LARGEFILE_SOURCE
+#define _LARGEFILE64_SOURCE
+
+#include <kglobal.h>
+#include <kiconloader.h>
+#include "kbfileinfo.h"
+
+#include "kbfile.h"
+
+KbFile::KbFile(KbFileInfo kfi, QListView * parent, QListViewItem * after) : KbItem(kfi, parent, after)
+{
+ setPixmap(0, KGlobal::iconLoader()->loadIcon("files",KIcon::Small));
+}
+
+KbFile::KbFile(QListView * parent, QListViewItem * after, QString file, QString path, QString date, off64_t size, unsigned int date_int) : KbItem(parent, after)
+{
+ setText(0,file);
+
+ QString s;
+ s.setNum(size);
+ setText(1, s);
+
+ setText(2, date);
+
+ m_path = path;
+ m_file = file;
+ m_date = date;
+ m_size = size;
+
+ m_date_int = date_int;
+}
+
+KbFile::~KbFile()
+{
+}
+
+int KbFile::rtti() const
+{
+ return KbItem::file;
+}