interface XContent in module com::sun::star::ucb::

(Global Index)

Syntax

interface XContent : com::sun::star::uno::XInterface ;

Description

specifies a content with a type and an identifier, which is able to manage listeners for events that are related to contents.

See also

XContentIdentifier

See also

XContentEventListener

Method Summary

getIdentifier returns the identifier of the content.

getContentType returns a type string, which is unique for that type of content (e.g. "application/vnd.sun.star.hierarchy-folder").

addContentEventListener adds a listener for content events.

removeContentEventListener removes a listener for content events.

Known Services Which Export this Interface

com::sun::star::ucb::HierarchyRootFolderContent

com::sun::star::ucb::WebDAVFolderContent

com::sun::star::ucb::HierarchyFolderContent

com::sun::star::ucb::FileContent

com::sun::star::ucb::PackageFolderContent

com::sun::star::ucb::PackageStreamContent

com::sun::star::ucb::WebDAVDocumentContent

com::sun::star::ucb::HierarchyLinkContent

com::sun::star::ucb::ChaosContent

com::sun::star::ucb::Content

Method Details



getIdentifier

Syntax

com::sun::star::ucb::XContentIdentifier getIdentifier ();

Description

returns the identifier of the content.

Returns

the identifier.

getContentType

Syntax

string getContentType ();

Description

returns a type string, which is unique for that type of content (e.g. "application/vnd.sun.star.hierarchy-folder").

Returns

the content type string.

addContentEventListener

Syntax

oneway void addContentEventListener (
com::sun::star::ucb::XContentEventListener Listener );

Description

adds a listener for content events.

Parameter Listener

the listener to add.

See also

ContentEvent

removeContentEventListener

Syntax

oneway void removeContentEventListener (
com::sun::star::ucb::XContentEventListener Listener );

Description

removes a listener for content events.

Parameter Listener

the listener to remove.

See also

ContentEvent
Top of Page