File: cmainwindow.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 (90 lines) | stat: -rw-r--r-- 2,112 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
 * GPG Keys 
 * cmainwindow.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 __CMAINWINDOW_H__
#define __CMAINWINDOW_H__
 
#include <qmainwindow.h>

class CKeyServer;
class QString;
class QListView;
class CListViewItem;
class QListViewItem;
class QProcess;
class QPopupMenu;
class QIconSet;
class QTabBar;

class CMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    CMainWindow();
    ~CMainWindow();

public slots:
    void processDone();
    void readFromStdout();
    void tabSelected( int id );
    void menuEvent( int item );
    void reReadPublic();
    void contextMenuRequested( QListViewItem *tmpItem, const QPoint &pos, int );
    void tcpStatusChange( int newStatus );
    void tcpSendDone();
    void exportProcDone();
    void gnupgProcMessage( QString message, int timeout );
    //void exportReadStdout();

private:
    void addMenuItem( QPopupMenu *menu, const char *text, int menuItem, int accel = 0 );
    void addMenuItem( QPopupMenu *menu, QIconSet iconSet, const char *text, int menuItem,
                      int accel = 0 );
    void applySettings();
    void readKeys( bool publicKey );

    void about();
    void properties();
    void keyInfo();
    void serverSearch( bool quickSearch );
    void sendKey();
#ifdef CLIPBOARD_SUPPORT
    void toClipboard();
    void fromClipboard();
#endif
    void toFile();
    void fromFile();
    void signKey();
    void doDelete();
    void exportKey( QString keyID );

    int checkCurrentItem();

    CKeyServer *keyServer;
    QTabBar *tabBar;
    QListView *listMain;
    CListViewItem *itemCurrent;
    CListViewItem *itemPub;
    CListViewItem *itemUid;
    QProcess *gpgProc;

    QString listCommand;
    QString fileName;

    QPopupMenu *menuFile;
    QPopupMenu *menuCmd;
    QPopupMenu *menuHelp;
    QPopupMenu *menuPublic;
    QPopupMenu *menuSignature;
    int exportOperation;
};

#endif // __CMAINWINDOW_H__