#ifndef UTILS_H
#define UTILS_H

#include "qbrush.h"

namespace Utils
{

QBrush getCheckerboardBrush(int halfWidth = 5, int halfHeight = 5, QColor firstColour = Qt::darkGray, QColor secondColour = Qt::gray);
void fillTransparencyWithChecker(QImage& image, int halfWidth = 5, int halfHeight = 5, QColor firstColour = Qt::darkGray, QColor secondColour = Qt::gray);
bool showInGraphicalShell(const QString& path);
void registerFileAssociation(const QString& extension, const QString& desc = {}, const QString& mimeType = {}, const QString& perceivedType = {}, int iconIndex = -1);
bool isInternetConnected();
bool unzip(const QString& srcFilePath, const QString& dstFolderPath); //???QIODevice src?

};

#endif // UTILS_H
