NfcShareFilesContent

Since: BlackBerry 10.0.0

#include <bb/system/NfcShareFilesContent>

To link against this class, add the following line to your .pro file: LIBS += -lbbsystem

Defines a request to share local files over NFC.

Clients specify the files they wish to share by creating an instance of NfcShareFilesContent, populating it with local file paths in URI form, and passing the object to NfcShareManager::setShareContent(const NfcShareFilesContent &).

Note that a request must contain at least one file to be valid.


Overview

Public Functions Index

NfcShareFilesContent ()
NfcShareFilesContent (const NfcShareFilesContent &other)
~NfcShareFilesContent ()
QList< QUrl >fileUrls () const
NfcShareFilesContent &operator= (const NfcShareFilesContent &other)
voidsetFileUrls (const QList< QUrl > &urls)

Public Functions

NfcShareFilesContent ()

Creates a new NfcShareFilesContent object.

Since:

BlackBerry 10.0.0

NfcShareFilesContent (

Creates a copy of an existing NfcShareFilesContent object.

Parameters
other

The source NfcShareFilesContent object to copy.

Since:

BlackBerry 10.0.0

~NfcShareFilesContent ()

Destructor.

Since:

BlackBerry 10.0.0

QList< QUrl > fileUrls ()

Returns the list of local file paths to be shared using NFC.

The paths are specified as URIs with a scheme of "file://" and a path to a file on the local file system.

Required: YES.

Return:

Returns the list of files to be shared using NFC as a list of QUrl objects.

Since:

BlackBerry 10.0.0

NfcShareFilesContent & operator= (

Copies the data of an existing NfcShareFilesContent object to this object.

Parameters
other

The source NfcShareFilesContent object to copy.

Return:

Returns the NfcShareFilesContent instance.

Since:

BlackBerry 10.0.0

void setFileUrls (

Sets the list of local file paths to be shared using NFC.

Local files are specified as URIs with a scheme of "file://" and a path to a file on the local file system.

To be valid, there must be at least one file in the list.

Required: YES.

Parameters
urls

A list of QUrl objects that reference local files.

Since:

BlackBerry 10.0.0

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus