#include <lib_browser.h>
Plugin interface for content node plugins.
Private Attributes | |
| Int32 | plugin_id |
| void * | node |
Friends | |
| class | SDKBrowserContentNode |
| class | SDKNode |
Constructor | |
| SDKBrowserContentNodeInfo (Int32 plugin_id) | |
| SDKBrowserContentNodeRef | GetNode (void) const |
Init/Free | |
| virtual Bool | Init (void *node) |
| virtual void | Free (void) |
Get | |
| virtual Int32 | GetTypeID (void)=0 |
| virtual SDKBrowserPluginRef | GetPlugin (UInt32 flags=0)=0 |
| virtual String | GetName (void)=0 |
| virtual String | GetTypeName (Int32 mode) |
| virtual Int32 | GetNodeURL (SDKBrowserURL &url, UInt32 flags=0) const =0 |
| virtual Bool | GetNodeTime (UInt32 mode, LocalFileTime *out)=0 |
| virtual UInt32 | GetNodeFlags (Int64 *out_size=0)=0 |
| virtual SDKBrowserIcon * | GetIcon (Int32 flags=0, Int32 pref_wh=0)=0 |
Miscellaneous | |
| virtual Int32 | UpdateDirectory (void)=0 |
| virtual Int32 | PrivateCall (Int32 plugin_id, Int32 node_type, Int32 selector, void *data) |
SDKBrowserOperation | |
| enum | { CheckOperation, PrepareOperation, PerformOperation, ModeMask, ModePrivateFlag1, ModePrivateFlag2, ModePrivateFlag3, ModePrivateFlag4, ModePrivateFlag5, ModePrivateFlag6, ModePrivateFlag7 } |
SDKBrowserOperationResult | |
| enum | { OperationSuccessful, RenameNotPermitted, MoveNotPermitted, CopyNotPermitted, DeleteNotPermitted, NewFolderNotPermitted, RenameError, MoveError, CopyError, DeleteError, UnsupportedNodeType, UserCancelled } |
Rename/NewFolder | |
| virtual Int32 | Rename (Int32 mode, const String &name) |
| virtual Int32 | NewFolder (Int32 mode, const String &name, SDKBrowserContentNodeRef *folder=0) |
Move/Copy/Delete | |
| virtual Int32 | MoveFrom (SDKBrowserContentNodeRef new_child, Int32 mode, CopyMoveCallback *callback, void *private_data, BaseThread *thread) |
| virtual Int32 | CopyFrom (SDKBrowserContentNodeRef new_child, Int32 mode, const String *rename, CopyMoveCallback *callback, void *private_data, BaseThread *thread) |
| virtual Int32 | Delete (Int32 mode, CopyMoveCallback *callback, void *private_data, BaseThread *thread) |
Destructor | |
| virtual | ~SDKBrowserContentNodeInfo () |
| anonymous enum |
| anonymous enum |
|
explicit |
Constructor.
| [in] | plugin_id | The ID of the plugin that has created the node info. |
|
virtual |
A dummy destructor to make the compiler happy.
| SDKBrowserContentNodeRef GetNode | ( | void | ) | const |
Retrieves the corresponding node.
|
virtual |
Called by the browser with pointer to the corresponding node.
| [in] | node | Pointer to the node. |
|
virtual |
Called by the browser before the node is deleted (overload this to dispose of the SDKBrowserContentNodeInfo at a later time).
|
pure virtual |
Called to retrieve the type of content node.
|
pure virtual |
Called to retrieve a plugin that can deal with the file.
| [in] | flags | The flags. |
|
pure virtual |
Called to retrieve the name of the content node (used in the UI).
Called to retrieve the type name of the content node.
| [in] | mode | The mode. See SDKBrowserItemType. |
|
pure virtual |
Called to retrieve the URL of the content node (this is the file name if the node represents a file or folder in the file system).
If there are multiple objects in a file (e.g. presets) the return value should reflect the index.
| [out] | url | Assign the URL. |
| [in] | flags | The flags. |
|
pure virtual |
Called to retrieve the creation and last modification time of a node (this will usually be the file times).
For a directory the modification time will usually be the time when a file has been added or removed.
| [in] | mode | The mode: GE_FILETIME |
| [out] | out | Assign the time. |
Called to retrieve some node flags.
| [in] | out_size | Assign the size of the output. |
|
pure virtual |
Called to retrieve the icon for this kind of file.
| [in] | flags | The flags. See SDKBrowserIcon. |
| [in] | pref_wh | The preferred width/height of the icon. |
|
pure virtual |
Called before GetDown() is used to search for children (mainly for file system based trees).
Hook for private calls. The plugin_id and node_type parameters should be used to validate the call, so that if a call is made to the wrong node it will do nothing.
| [in] | plugin_id | Must be the same as GetPlugin()->GetPluginID(). |
| [in] | node_type | Must be the same as GetTypeID(). |
| [in] | selector | The private method index. |
| [in] | data | The private data. |
Called to rename the node.
| [in] | mode | The mode. Either CheckOperation or PerformOperation. |
| [in] | name | The new name. |
|
virtual |
Called to create a new folder.
| [in] | mode | The mode. Either CheckOperation or PerformOperation. |
| [in] | name | A unique name. |
| [in] | folder | The node folder. |
|
virtual |
Called to move nodes (the node will be the new parent).
| [in] | new_child | The new child. |
| [in] | mode | The mode. See SDKBrowserOperation. |
| [in] | callback | The callback, e.g. for progress report. Only called for PrepareOperation and PerformOperation modes. |
| [in] | private_data | Private data for the callback. |
| [in] | thread | The thread. |
|
virtual |
Called to copy nodes (the node will be the new parent).
| [in] | new_child | The new child. |
| [in] | mode | The mode. See SDKBrowserOperation. |
| [in] | rename | Pointer to a string if new_child has to be renamed to avoid a name conflict. Can be nullptr. |
| [in] | callback | The callback, e.g. for progress report. Only called for PrepareOperation and PerformOperation modes. |
| [in] | private_data | Private data for the callback. |
| [in] | thread | The thread. |
|
virtual |
Called to delete the node and its children.
| [in] | mode | The mode. See SDKBrowserOperation. |
| [in] | callback | The callback, e.g. for progress report. Only called for PrepareOperation and PerformOperation modes. |
| [in] | private_data | Private data for the callback. |
| [in] | thread | The thread. |
|
friend |
|
friend |
|
private |
|
private |