root/trunk/qt4-gui/src/userevents/usersendfileevent.h

Revision 6108, 1.6 kB (checked in by flynd, 9 months ago)

Updated variables and function names in user event dialog to conform better with code style.

Line 
1// -*- c-basic-offset: 2 -*-
2/*
3 * This file is part of Licq, an instant messaging client for UNIX.
4 * Copyright (C) 2000-2006 Licq developers
5 *
6 * Licq is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * Licq is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Licq; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19 */
20
21#ifndef USERSENDFILEEVENT_H
22#define USERSENDFILEEVENT_H
23
24class QLabel;
25
26#include <licq_filetransfer.h>
27
28#include "usersendcommon.h"
29
30namespace LicqQtGui
31{
32
33class UserSendFileEvent : public UserSendCommon
34{
35  Q_OBJECT
36
37public:
38  UserSendFileEvent(QString id, unsigned long ppid, QWidget* parent = 0);
39  virtual ~UserSendFileEvent();
40
41  void setFile(const QString& file, const QString& description);
42  void addFile(const QString& file);
43
44private:
45  QLabel* myFileLabel;
46  InfoField* myFileEdit;
47  QPushButton* myBrowseButton;
48  QPushButton* myEditButton;
49  ConstFileList myFileList;
50
51  virtual bool sendDone(ICQEvent* e);
52  virtual void resetSettings();
53
54private slots:
55  void browseFile();
56  void editFileList();
57  void updateLabel(unsigned count);
58  virtual void send();
59};
60
61} //namespace LicqQtGui
62
63#endif
Note: See TracBrowser for help on using the browser.