|
Wt
4.12.1
|
A nested class of WFileDropWidget representing a Directory. More...
#include <WFileDropWidget.h>
Public Member Functions | |
| const std::vector< File * > & | contents () const |
| Returns the contents of the directory. | |
| bool | directory () const override |
| Returns whether this is a directory. | |
Public Member Functions inherited from Wt::WFileDropWidget::File | |
| const std::string & | clientFileName () const |
| Returns the client filename. | |
| const std::string & | path () const |
| Returns the path of the file. More... | |
| const std::string & | mimeType () const |
| Returns the mime-type of the file. | |
| ::uint64_t | size () const |
| Returns the size of the file. | |
| const Http::UploadedFile & | uploadedFile () const |
| Returns the uploaded file as a Http::UploadedFile. More... | |
| bool | uploadFinished () const |
| Returns true if the upload is finished. More... | |
| Signal< ::uint64_t, ::uint64_t > & | dataReceived () |
| This signal allows you to track the upload progress of the file. More... | |
| Signal & | uploaded () |
| This signal is triggered when the upload is finished. More... | |
Public Member Functions inherited from Wt::WObject | |
| void | addChild (std::unique_ptr< WObject > child) |
| Add a child WObject whose lifetime is determined by this WObject. | |
| template<typename Child > | |
| Child * | addChild (std::unique_ptr< Child > child) |
| Add a child WObject, returning a raw pointer. More... | |
| std::unique_ptr< WObject > | removeChild (WObject *child) |
| Remove a child WObject, so its lifetime is no longer determined by this WObject. | |
| template<typename Child > | |
| std::unique_ptr< Child > | removeChild (Child *child) |
| Remove a child WObject, so its lifetime is no longer determined by this WObject. More... | |
| virtual const std::string | id () const |
| Returns the (unique) identifier for this object. More... | |
| virtual void | setObjectName (const std::string &name) |
| Sets an object name. More... | |
| virtual std::string | objectName () const |
| Returns the object name. More... | |
| void | resetLearnedSlots () |
| Resets learned stateless slot implementations. More... | |
| template<class T > | |
| void | resetLearnedSlot (void(T::*method)()) |
| Resets a learned stateless slot implementation. More... | |
| template<class T > | |
| WStatelessSlot * | implementStateless (void(T::*method)()) |
| Declares a slot to be stateless and learn client-side behaviour on first invocation. More... | |
| template<class T > | |
| WStatelessSlot * | implementStateless (void(T::*method)(), void(T::*undoMethod)()) |
| Declares a slot to be stateless and learn client-side behaviour in advance. More... | |
| void | isNotStateless () |
| Marks the current function as not stateless. More... | |
| template<class T > | |
| WStatelessSlot * | implementJavaScript (void(T::*method)(), const std::string &jsCode) |
| Provides a JavaScript implementation for a method. More... | |
Public Member Functions inherited from Wt::Core::observable | |
| observable () noexcept | |
| Default constructor. | |
| virtual | ~observable () |
| Destructor. More... | |
| template<typename... Args, typename C > | |
| auto | bindSafe (void(C::*method)(Args...)) noexcept |
| Protects a method call against object destruction. More... | |
| template<typename... Args, typename C > | |
| auto | bindSafe (void(C::*method)(Args...) const) const noexcept |
| Protects a const method call against object destruction. More... | |
| template<typename Function > | |
| auto | bindSafe (const Function &function) noexcept |
| Protects a function against object destruction. More... | |
Additional Inherited Members | |
Public Types inherited from Wt::WObject | |
| typedef void(WObject::* | Method) () |
| Typedef for a WObject method without arguments. | |
Protected Member Functions inherited from Wt::WObject | |
| virtual WStatelessSlot * | getStateless (Method method) |
| On-demand stateless slot implementation. More... | |
A nested class of WFileDropWidget representing a Directory.
In true linux tradition, a Directory is a File. However, in this case it was more a matter of compatibility. This class was added later on and by having it inherit from File, the existing WFileDropWidget::drop() signal can return both Files and Directories.