1 //*************************************************************** 2 // CLass: Utils 3 // 4 // Description: Various static functions 5 // 6 // 7 // Author: Chris Browet <cbro@semperpax.com> (C) 2010 8 // 9 // Copyright: See COPYING file that comes with this distribution 10 // 11 //****************************************************************** 12 13 #ifndef UTILS_H 14 #define UTILS_H 15 16 #include <QObject> 17 #include <QUrl> 18 #include <QRectF> 19 #include <QLineF> 20 #include <QPointF> 21 22 class Utils: public QObject 23 { 24 Q_OBJECT 25 26 public: 27 28 static const QString encodeAttributes(const QString & text); 29 static bool QRectInterstects(const QRectF& r, const QLineF& l, QPointF& a, QPointF& b); 30 static bool sendBlockingNetRequest(const QUrl& theUrl, QString& reply); 31 }; 32 33 #endif // UTILS_H 34