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

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

.h
Скачиваний:
16
Добавлен:
17.04.2013
Размер:
1.8 Кб
Скачать
/*
  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 QButtonGroup;
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(int port, const QString &folder); 
	void startSend(const QString &ip, int port, const QString &file);
	
private:
	/* Receive */
	QLabel *r_portLabel, *r_folderLabel;
	QLineEdit *r_folderEdit;
	QSpinBox *r_portBox;
	QPushButton *r_folderButton;

	/* Send */
	QLabel *s_ipLabel, *s_portLabel, *s_fileLabel;
	QLineEdit *s_ipEdit, *s_fileEdit;
	QSpinBox *s_portBox;
	QPushButton *s_fileButton;
	
	QRadioButton *s_Button, *r_Button;
	QButtonGroup *buttonGroup;
	
	QPushButton *startButton, *quitButton;
};

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