• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

libkonq

Public Member Functions | List of all members
KonqFileItemCapabilities Class Reference

#include <konq_fileitemcapabilities.h>

Public Member Functions

 KonqFileItemCapabilities ()
 
 KonqFileItemCapabilities (const KFileItemList &items)
 
 KonqFileItemCapabilities (const KonqFileItemCapabilities &)
 
virtual ~KonqFileItemCapabilities ()
 
bool isLocal () const
 
KonqFileItemCapabilities & operator= (const KonqFileItemCapabilities &other)
 
void setItems (const KFileItemList &items)
 
bool supportsDeleting () const
 
bool supportsMoving () const
 
bool supportsReading () const
 
bool supportsWriting () const
 

Detailed Description

Provides information about the access capabilities of a group of KFileItem objects.

As soon as one file item does not support a specific capability, it is marked as unsupported for all items.

This class is implicitly shared, which means it can be used as a value and copied around at almost no cost.

Since
4.1

Definition at line 45 of file konq_fileitemcapabilities.h.

Constructor & Destructor Documentation

KonqFileItemCapabilities::KonqFileItemCapabilities ( )

Default constructor.

Use setItems to specify the items.

Definition at line 35 of file konq_fileitemcapabilities.cpp.

KonqFileItemCapabilities::KonqFileItemCapabilities ( const KFileItemList &  items)

Constructor that takes a KFileItemList and sets the capabilities supported by all the FileItems as true.

Parameters
itemsThe list of items that are to have their supported capabilities checked.

Definition at line 40 of file konq_fileitemcapabilities.cpp.

KonqFileItemCapabilities::KonqFileItemCapabilities ( const KonqFileItemCapabilities &  other)

Copy constructor.

Definition at line 51 of file konq_fileitemcapabilities.cpp.

KonqFileItemCapabilities::~KonqFileItemCapabilities ( )
virtual

Destructor.

Definition at line 62 of file konq_fileitemcapabilities.cpp.

Member Function Documentation

bool KonqFileItemCapabilities::isLocal ( ) const

Check if files are local.

Returns
true if all the FileItems are local, otherwise there is one or more remote file, so false.

Definition at line 86 of file konq_fileitemcapabilities.cpp.

KonqFileItemCapabilities & KonqFileItemCapabilities::operator= ( const KonqFileItemCapabilities &  other)

Assignment operator.

Definition at line 56 of file konq_fileitemcapabilities.cpp.

void KonqFileItemCapabilities::setItems ( const KFileItemList &  items)

Sets the items that are to have their supported capabilities checked.

Definition at line 46 of file konq_fileitemcapabilities.cpp.

bool KonqFileItemCapabilities::supportsDeleting ( ) const

Check if deleting capability is supported.

Returns
true if all the FileItems support deleting, otherwise false.

Definition at line 71 of file konq_fileitemcapabilities.cpp.

bool KonqFileItemCapabilities::supportsMoving ( ) const

Check if moving capability is supported.

Returns
true if all the FileItems support moving, otherwise false.

Definition at line 81 of file konq_fileitemcapabilities.cpp.

bool KonqFileItemCapabilities::supportsReading ( ) const

Check if reading capability is supported.

Returns
true if all the FileItems support reading, otherwise false.

Definition at line 66 of file konq_fileitemcapabilities.cpp.

bool KonqFileItemCapabilities::supportsWriting ( ) const

Check if writing capability is supported.

Returns
true if all the FileItems support writing, otherwise false.

Definition at line 76 of file konq_fileitemcapabilities.cpp.


The documentation for this class was generated from the following files:
  • konq_fileitemcapabilities.h
  • konq_fileitemcapabilities.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkonq

Skip menu "libkonq"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal