Last change
on this file was 2, checked in by dmik, 20 years ago |
Imported xplatform parts of the official release 3.3.1 from Trolltech
|
-
Property svn:keywords
set to
Id
|
File size:
866 bytes
|
Line | |
---|
1 | /****************************************************************************
|
---|
2 | ** $Id: ftpviewitem.h 2 2005-11-16 15:49:26Z dmik $
|
---|
3 | **
|
---|
4 | ** Copyright (C) 1992-2002 Trolltech AS. All rights reserved.
|
---|
5 | **
|
---|
6 | ** This file is part of an example program for Qt. This example
|
---|
7 | ** program may be used, distributed and modified without limitation.
|
---|
8 | **
|
---|
9 | *****************************************************************************/
|
---|
10 |
|
---|
11 | #ifndef FTPVIEWITEM_H
|
---|
12 | #define FTPVIEWITEM_H
|
---|
13 |
|
---|
14 | #include <qlistview.h>
|
---|
15 | #include <qdatetime.h>
|
---|
16 |
|
---|
17 | class FtpViewItem : public QListViewItem
|
---|
18 | {
|
---|
19 | public:
|
---|
20 | enum Type {
|
---|
21 | Directory,
|
---|
22 | File
|
---|
23 | };
|
---|
24 |
|
---|
25 | FtpViewItem( QListView *parent, Type t, const QString &name, const QString &size, const QString &lastModified );
|
---|
26 |
|
---|
27 | int compare( QListViewItem * i, int col, bool ascending ) const;
|
---|
28 |
|
---|
29 | bool isDir()
|
---|
30 | { return type==Directory; }
|
---|
31 |
|
---|
32 | private:
|
---|
33 | Type type;
|
---|
34 | };
|
---|
35 |
|
---|
36 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.