~ubuntu-branches/ubuntu/trusty/kvirc/trusty

« back to all changes in this revision

Viewing changes to src/modules/sharedfileswindow/sharedfileswindow.h

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _SHAREDFILESWINDOW_H_
2
 
#define _SHAREDFILESWINDOW_H_
3
 
//=============================================================================
4
 
//
5
 
//   File : sharedfileswindow.h
6
 
//   Creation date : Mon Apr 21 2003 23:14:12 CEST by Szymon Stefanek
7
 
//
8
 
//   This file is part of the KVirc irc client distribution
9
 
//   Copyright (C) 2003-2008 Szymon Stefanek (pragma at kvirc dot net)
10
 
//
11
 
//   This program is FREE software. You can redistribute it and/or
12
 
//   modify it under the linkss of the GNU General Public License
13
 
//   as published by the Free Software Foundation; either version 2
14
 
//   of the License, or (at your opinion) any later version.
15
 
//
16
 
//   This program is distributed in the HOPE that it will be USEFUL,
17
 
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
 
//   See the GNU General Public License for more details.
20
 
//
21
 
//   You should have received a copy of the GNU General Public License
22
 
//   along with this program. If not, write to the Free Software Foundation,
23
 
//   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
 
//
25
 
//=============================================================================
26
 
 
27
 
#include "kvi_window.h"
28
 
#include "kvi_string.h"
29
 
#include "kvi_sparser.h"
30
 
#include "kvi_console.h"
31
 
#include "kvi_moduleextension.h"
32
 
#include "kvi_sharedfiles.h"
33
 
#include <QTreeWidget>
34
 
 
35
 
#include <QDialog>
36
 
#include <QCheckBox>
37
 
 
38
 
class QGridLayout;
39
 
class QDateTimeEdit;
40
 
class QLabel;
41
 
class QLineEdit;
42
 
class QPushButton;
43
 
 
44
 
class KviSharedFilesTreeWidgetItem : public QTreeWidgetItem
45
 
{
46
 
public:
47
 
        KviSharedFilesTreeWidgetItem(QTreeWidget * lv,KviSharedFile * f);
48
 
        ~KviSharedFilesTreeWidgetItem();
49
 
protected:
50
 
        KviSharedFile * m_pSharedFilePointer; // THIS IS READ ONLY!
51
 
public:
52
 
        KviSharedFile * readOnlySharedFilePointer(){ return m_pSharedFilePointer; };
53
 
};
54
 
 
55
 
 
56
 
class KviSharedFileEditDialog : public QDialog
57
 
{
58
 
        Q_OBJECT
59
 
public:
60
 
        KviSharedFileEditDialog(QWidget* par,KviSharedFile * f = 0);
61
 
        ~KviSharedFileEditDialog();
62
 
 
63
 
        QDateTimeEdit * m_pExpireDateTimeEdit;
64
 
        QLineEdit     * m_pFilePathEdit;
65
 
        QLineEdit     * m_pUserMaskEdit;
66
 
        QPushButton   * m_pBrowseButton;
67
 
        QLineEdit     * m_pShareNameEdit;
68
 
        QCheckBox     * m_pExpireCheckBox;
69
 
public:
70
 
        KviSharedFile * getResult();
71
 
protected slots:
72
 
        void okClicked();
73
 
        void browse();
74
 
};
75
 
 
76
 
 
77
 
class KviSharedFilesWindow : public KviWindow , public KviModuleExtension
78
 
{
79
 
        friend class KviSharedFilesItem;
80
 
        Q_OBJECT
81
 
public:
82
 
        KviSharedFilesWindow(KviModuleExtensionDescriptor * d,KviFrame * lpFrm);
83
 
        ~KviSharedFilesWindow();
84
 
protected:
85
 
        QSplitter           * m_pVertSplitter;
86
 
 
87
 
        QTreeWidget           * m_pTreeWidget;
88
 
 
89
 
        QPushButton         * m_pRemoveButton;
90
 
        QPushButton         * m_pEditButton;
91
 
        QPushButton         * m_pAddButton;
92
 
public: // Methods
93
 
        virtual void die();
94
 
protected:
95
 
        virtual QPixmap * myIconPtr();
96
 
        virtual void fillCaptionBuffers();
97
 
        virtual void resizeEvent(QResizeEvent *e);
98
 
        virtual void getBaseLogFileName(QString &buffer);
99
 
public:
100
 
        virtual QSize sizeHint() const;
101
 
protected slots:
102
 
        void fillFileView();
103
 
        void sharedFileAdded(KviSharedFile * f);
104
 
        void sharedFileRemoved(KviSharedFile * f);
105
 
        void enableButtons();
106
 
        void removeClicked();
107
 
        void addClicked();
108
 
        void editClicked();
109
 
};
110
 
 
111
 
#endif //_SHAREDFILESWINDOW_H_