mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
![Pino Toscano](/assets/img/avatar_default.png)
make the function able to be reused in unit tests (ie adding a function hook for the filename existance check) svn path=/trunk/KDE/kdegraphics/okular/; revision=1032962
28 lines
944 B
C++
28 lines
944 B
C++
/***************************************************************************
|
|
* Copyright (C) 2009 by Pino Toscano <pino@kde.org> *
|
|
* *
|
|
* This program 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 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#ifndef OKULAR_SHELLUTILS_H
|
|
#define OKULAR_SHELLUTILS_H
|
|
|
|
#include <qstring.h>
|
|
|
|
#include <kurl.h>
|
|
|
|
namespace ShellUtils
|
|
{
|
|
|
|
typedef bool (*FileExistFunc)( const QString& fileName );
|
|
|
|
FileExistFunc qfileExistFunc();
|
|
KUrl urlFromArg( const QString& _arg, FileExistFunc exist_func, const QString& pageArg = QString() );
|
|
|
|
}
|
|
|
|
#endif
|