Logo Search packages:      
Sourcecode: acetoneiso version File versions  Download package

donate.h

//This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
//
//    AcetoneISO is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    AcetoneISO is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with AcetoneISO.  If not, see <http://www.gnu.org/licenses/>.
void acetoneiso::a_donate()
{
QDir Home = QDir::home();
QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
   file.open(QIODevice::ReadOnly);//lo apro in sola lettura
   QString str3 = (leggiRigo( 3, &file ));
if(str3.contains("kde", Qt::CaseInsensitive)) {
   BRowser.startDetached( "kfmclient", QStringList() << "openURL" << "http://www.acetoneteam.org/" );
 }
else {
   QMessageBox::information(this, "AcetoneISO", tr("to donate go here: http://www.acetoneteam.org/") );
 }
}

Generated by  Doxygen 1.6.0   Back to index