File: functions.h

package info (click to toggle)
gpgkeys 0.3.1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 276 kB
  • ctags: 241
  • sloc: cpp: 2,007; makefile: 53
file content (47 lines) | stat: -rw-r--r-- 1,337 bytes parent folder | download | duplicates (3)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * GPG Keys 
 * functions.h
 * (c) 2001 Peter Mathiasson <peter@mathiasson.nu>
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2, as
 * published by the Free Software Foundation
 */

#ifndef __FUNCTIONS_H__
#define __FUNCTIONS_H__

#include <qstring.h>
#include "config.h"

class QComboBox;
class QPixmap;
class QIconSet;
class QStatusBar;

/* GPG Routines */
const QString getTrust( const QString trust );
const QString getCipher( const QString id );
void runFailed( QStatusBar *statusBar );

/* GFX Routines */
//const QPixmap getPixmap( const char *name );
//const QIconSet getIconSet( const char *name );

/* Settings */
QString readConfigString( const QString key, QString def = QString::null );
int readConfigInt( const QString key, int def = 0 );
QFont readConfigFont( const QString key, const QString family, const int pointSize,
                      const int weight, const int italic );
void writeConfigString( const QString key, const QString value );
void writeConfigInt( const QString key, int value );
void writeConfigFont( const QString key, QFont font );

/* QT Addons */
void setComboBoxText( QComboBox *box, const QString text );

/* Utf8 Convertion */
QString fromUtf8( const QString string );


#endif // __FUNCTIONS_H__