Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

checkOverWrite.hpp File Reference

#include <qstring.h>
#include <qwidget.h>

Go to the source code of this file.

Functions

QString checkOverWrite (const QString &fileName, QWidget *parent)


Function Documentation

QString checkOverWrite ( const QString &  fileName,
QWidget *  parent 
)

Definition at line 21 of file checkOverWrite.cpp.

00022 {
00023   QString retVal;
00024   if( QFile::exists( fileName ))
00025     if ( KMessageBox::warningContinueCancel
00026          ( parent,
00027            i18n( "The file %1 already exists and it will be overwritten!" ).
00028            arg( fileName ) ) !=
00029          KMessageBox::Continue )
00030       retVal = QString::null;
00031     else
00032       retVal = fileName;
00033   else
00034     retVal = fileName;
00035   return retVal;
00036 }



anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:27 2008 - GNU Free Documentation License