Exemplo n.º 1
0
void RingtoneDialog::onUriReceived(QString objectId, QString uri)
{
    if (objectId != this->objectId) return;

    disconnect(this->sender(), SIGNAL(gotUri(QString,QString,QString)), this, SLOT(onUriReceived(QString,QString)));

    this->uri = uri;

    if (accepted)
        setRingtone();
}
Exemplo n.º 2
0
RingtoneDialog::RingtoneDialog(QWidget *parent,
                               MafwSourceAdapter *mafwSource, QString objectId,
                               QString title, QString artist) :
    ConfirmDialog(Ringtone, parent, title, artist),
    accepted(false),
    objectId(objectId)
{
    this->setAttribute(Qt::WA_DeleteOnClose);

    connect(mafwSource, SIGNAL(gotUri(QString,QString,QString)), this, SLOT(onUriReceived(QString,QString)));

    mafwSource->getUri(objectId);
}