Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Лабы / 3 / 1.tar / 1 / 1 / net_copy / prepare

.h
Скачиваний:
22
Добавлен:
17.04.2013
Размер:
1.66 Кб
Скачать
/*
  netFileCopyer
  Copyright (C) 2004 Dmitry S. Vasilchenko.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

  The GNU GPL is contained in /usr/doc/copyright/GPL on a Debian
  system and in the file COPYING in the Linux kernel source.
*/

#ifndef _PREPARE_H
#define _PREPARE_H

#include <qdialog.h>

class QLineEdit;
class QPushButton;
class QLabel;
class QSpinBox;
class QVButtonGroup;
class QRadioButton;

class PrepareDialog : public QDialog {
	Q_OBJECT;
	
public:
	PrepareDialog(QWidget *parent = 0, const char *name = 0);
	
private slots:
	void checkboxChanged(int state);
	void startClicked();
	void selectFile();
	void startReceive(const QString &ip, int port, const QString &folder); 
	void startSend(const QString &ip, int port, const QString &file);
	
private:
	QLabel *ipLabel, *portLabel, *fileLabel;
	QLineEdit *ipEdit, *fileEdit;
	QSpinBox *portBox;
	
	QVButtonGroup *buttonGroup;
	QRadioButton *sendRButton, *receiveRButton;
	QPushButton *startButton, *quitButton, *fileButton;
};

#endif
Соседние файлы в папке net_copy