Esempio n. 1
0
void LnkProperties::beamLnk()
{
    Ir ir;
    DocLnk doc( *((DocLnk *)lnk) );
    doc.setName(d->docname->text());
    reject();
    ir.send( doc, doc.comment() );
}
Esempio n. 2
0
void NotesControl::slotBeamButton()
{
    Ir ir;
    if(ir.supported()){
        this->hide();
        QString selectedText = m_notesList->currentText();
        if( !selectedText.isEmpty()) {
            QString file = QDir::homeDirPath() + "/" +selectedText;
            QFile f(file);
            Ir *irFile = new Ir(this, "IR");
            connect( irFile, SIGNAL(done(Ir*)), this, SLOT( slotBeamFinished(Ir*) ) );
            irFile->send( file, "Note", "text/plain" );
        }