Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXDirItem Class Reference

Directory item. More...

#include <FXDirList.h>

Inheritance diagram for FX::FXDirItem:

FX::FXTreeItem FX::FXObject List of all members.

Public Types

enum  {
  FOLDER = 512,
  EXECUTABLE = 1024,
  SYMLINK = 2048,
  CHARDEV = 4096,
  BLOCKDEV = 8192,
  FIFO = 16384,
  SOCK = 32768
}

Public Member Functions

 FXDirItem (const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL)
FXbool isFile () const
FXbool isDirectory () const
FXbool isExecutable () const
FXbool isSymlink () const
FXbool isChardev () const
FXbool isBlockdev () const
FXbool isFifo () const
FXbool isSocket () const
FXFileAssocgetAssoc () const
FXlong getSize () const
FXTime getDate () const

Friends

class FXDirList

Detailed Description

Directory item.

See also:


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
FOLDER  Directory item.
EXECUTABLE  Executable item.
SYMLINK  Symbolic linked item.
CHARDEV  Character special item.
BLOCKDEV  Block special item.
FIFO  FIFO item.
SOCK  Socket item.


Constructor & Destructor Documentation

FX::FXDirItem::FXDirItem const FXString text,
FXIcon oi = NULL,
FXIcon ci = NULL,
void *  ptr = NULL
[inline]
 

Constructor.


Member Function Documentation

FXbool FX::FXDirItem::isFile  )  const [inline]
 

Return true if this is a file item.

FXbool FX::FXDirItem::isDirectory  )  const [inline]
 

Return true if this is a directory item.

FXbool FX::FXDirItem::isExecutable  )  const [inline]
 

Return true if this is an executable item.

FXbool FX::FXDirItem::isSymlink  )  const [inline]
 

Return true if this is a symbolic link item.

FXbool FX::FXDirItem::isChardev  )  const [inline]
 

Return true if this is a character device item.

FXbool FX::FXDirItem::isBlockdev  )  const [inline]
 

Return true if this is a block device item.

FXbool FX::FXDirItem::isFifo  )  const [inline]
 

Return true if this is an FIFO item.

FXbool FX::FXDirItem::isSocket  )  const [inline]
 

Return true if this is a socket.

FXFileAssoc* FX::FXDirItem::getAssoc  )  const [inline]
 

Return the file-association object for this item.

FXlong FX::FXDirItem::getSize  )  const [inline]
 

Return the file size for this item.

FXTime FX::FXDirItem::getDate  )  const [inline]
 

Return the date for this item.


Friends And Related Function Documentation

friend class FXDirList [friend]
 

Reimplemented from FX::FXTreeItem.

Copyright © 1997-2005 Jeroen van der Zijp