The TransferMethodInfo class encapsulate information of a single transfer method. More...
#include <TransferMethodInfo>
enum | TransferMethodInfoField { DisplayName, UserName, MethodId, AccountId, ShareUIPath, Capabilities } |
TransferMethodInfo () | |
TransferMethodInfo ( const TransferMethodInfo & other ) | |
~TransferMethodInfo () | |
QVariant | value ( int index ) const |
TransferMethodInfo & | operator= ( const TransferMethodInfo & other ) |
void | registerType () |
The TransferMethodInfo class encapsulate information of a single transfer method.
Share plugin must create a list of instances of TransferMethodInfo class to encapsulate information about the plugin for example filling information for the Bluetooth sharing plugin:
QList<TransferMethodInfo> infoList; TransferMethodInfo info; QStringList capabilities; capabilities << QLatin1String("*"); info.displayName = QLatin1String("Bluetooth"); info.userName = ""; info.accountId = ""; info.methodId = QLatin1String("bluetooth"); info.shareUIPath = SHARE_UI_PATH + QLatin1String("/BluetoothShareUI.qml"); info.capabilitities = capabilities; infoList << info;
Returns the value using the index. Actually the index is enum TransferMethodInfoField.