summaryrefslogtreecommitdiffstats
path: root/examples/network/ftpclient/ftpviewitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/ftpclient/ftpviewitem.h')
-rw-r--r--examples/network/ftpclient/ftpviewitem.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/network/ftpclient/ftpviewitem.h b/examples/network/ftpclient/ftpviewitem.h
new file mode 100644
index 000000000..3387f030a
--- /dev/null
+++ b/examples/network/ftpclient/ftpviewitem.h
@@ -0,0 +1,35 @@
+/****************************************************************************
+**
+** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
+**
+** This file is part of an example program for TQt. This example
+** program may be used, distributed and modified without limitation.
+**
+*****************************************************************************/
+
+#ifndef FTPVIEWITEM_H
+#define FTPVIEWITEM_H
+
+#include <qlistview.h>
+#include <qdatetime.h>
+
+class FtpViewItem : public TQListViewItem
+{
+public:
+ enum Type {
+ Directory,
+ File
+ };
+
+ FtpViewItem( TQListView *parent, Type t, const TQString &name, const TQString &size, const TQString &lastModified );
+
+ int compare( TQListViewItem * i, int col, bool ascending ) const;
+
+ bool isDir()
+ { return type==Directory; }
+
+private:
+ Type type;
+};
+
+#endif