void LnkProperties::beamLnk() { Ir ir; DocLnk doc( *((DocLnk *)lnk) ); doc.setName(d->docname->text()); reject(); ir.send( doc, doc.comment() ); }
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" ); }