summaryrefslogtreecommitdiffabout
path: root/microkde/kapplication.h
blob: de5a08492ff09ea23c8aabcc0d630ea49aa21559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MINIKDE_KAPPLICATION_H
#define MINIKDE_KAPPLICATION_H

#include "qstring.h"
#include <qdialog.h>
#ifdef QDialog 
#undef  QDialog 
#endif

class KApplication
{
  public:
    static int random();

//US
  /**
   * Generates a random string.  It operates in the range [A-Za-z0-9]
   * @param length Generate a string of this length.
   * @return the random string
   */
  static QString randomString(int length);
  static int execDialog( QDialog* ); 
  static void showLicence(); 
  static void testCoords( int* x, int* y, int* wid, int * hei ); 
  static void showFile(QString caption, QString file); 
  static void showText(QString caption, QString text); 
  static bool convert2latin1(QString file); 
  static int createBackup( QString fn, QString dp, int numBup );
};


#endif