igor::iMimeData Class Reference

#include <iMimeData.h>

Public Member Functions

virtual ~iMimeData ()=default
 
void setData (const iaString &mimeType, const uint8 *data, uint32 dataSize)
 
void getData (const iaString &mimeType, uint8 **data, uint32 &dataSize) const
 
bool hasType (const iaString &mimeType) const
 
void setText (const iaString &text)
 
const iaString getText () const
 
bool hasText () const
 
void setWidgetID (iWidgetID widgetID)
 
iWidgetID getWidgetID () const
 
bool hasWidgetID () const
 
void setResourceID (iResourceID resourceID)
 
iResourceID getResourceID () const
 
bool hasResourceID () const
 
void clear ()
 
bool operator== (const iMimeData &other) const
 
bool operator!= (const iMimeData &other) const
 

Detailed Description

mime data container

Constructor & Destructor Documentation

◆ ~iMimeData()

virtual igor::iMimeData::~iMimeData ( )
virtualdefault

default dtor

Member Function Documentation

◆ clear()

void igor::iMimeData::clear ( )

clear all data

◆ getData()

void igor::iMimeData::getData ( const iaString mimeType,
uint8 **  data,
uint32 dataSize 
) const

returns the mime data

Parameters
mimeTypethe type to access
[out]datapointer to data (iMimeData keeps ownership)
[out]dataSizesize of data

◆ getResourceID()

iResourceID igor::iMimeData::getResourceID ( ) const
Returns
resource id

◆ getText()

const iaString igor::iMimeData::getText ( ) const
Returns
plain text if there is any

◆ getWidgetID()

iWidgetID igor::iMimeData::getWidgetID ( ) const
Returns
widget id

◆ hasResourceID()

bool igor::iMimeData::hasResourceID ( ) const
Returns
true if mime type "application/vnd.igor.resource-id" is present

◆ hasText()

bool igor::iMimeData::hasText ( ) const
Returns
true if mime type "text/plain" is present

◆ hasType()

bool igor::iMimeData::hasType ( const iaString mimeType) const
Returns
true if mime data contains given mime type

◆ hasWidgetID()

bool igor::iMimeData::hasWidgetID ( ) const
Returns
true if mime type "application/vnd.igor.widget-id" is present

◆ operator!=()

bool igor::iMimeData::operator!= ( const iMimeData other) const

compare two mime data sets for being not equal

Returns
true if not equal
Parameters
otherthe other item

◆ operator==()

bool igor::iMimeData::operator== ( const iMimeData other) const

compare two mime data sets

Returns
true if equal
Parameters
otherthe other item

◆ setData()

void igor::iMimeData::setData ( const iaString mimeType,
const uint8 data,
uint32  dataSize 
)

sets mime data

Parameters
mimeTypethe type to use
datathe actual data (makes a copy and keeps ownership)
dataSizesize of data

◆ setResourceID()

void igor::iMimeData::setResourceID ( iResourceID  resourceID)

sets mime type "application/vnd.igor.resource-id"

Parameters
resourceIDthe resource id to set

◆ setText()

void igor::iMimeData::setText ( const iaString text)

sets text for mime type "text/plain"

Parameters
textthe text to set

◆ setWidgetID()

void igor::iMimeData::setWidgetID ( iWidgetID  widgetID)

sets mime type "application/vnd.igor.widget-id"

Parameters
widgetIDthe widget id to set

The documentation for this class was generated from the following files: