You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
konversation/konversation/src/dccresumedialog.h

61 lines
1.5 KiB

/*
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.
*/
/*
Copyright (C) 2004 Dario Abatianni <eisfuchs@tigress.com>
Copyright (C) 2004 Shintaro Matsuoka <shin@shoegazed.org>
*/
#ifndef DCCRESUMEDIALOG_H
#define DCCRESUMEDIALOG_H
#include <kdialogbase.h>
class KURLRequester;
class DccTransferRecv;
class DccResumeDialog : public KDialogBase
{
TQ_OBJECT
public:
enum ReceiveAction
{
RA_Rename = 0x01,
RA_Overwrite = 0x02,
RA_Resume = 0x04,
RA_Cancel = 0x08
};
virtual ~DccResumeDialog();
static ReceiveAction ask(DccTransferRecv* item, const TQString& message, int enabledActions, ReceiveAction defaultAction);
protected slots:
void slotOk();
void slotUser1();
void slotCancel();
void suggestNewName();
void setDefaultName();
void updateDialogButtons();
protected:
DccResumeDialog(DccTransferRecv* item, const TQString& caption, const TQString& message, int enabledActions, int enabledButtonCodes, KDialogBase::ButtonCode defaultButtonCode);
// UI
KURLRequester* m_urlreqFileURL;
// data
DccTransferRecv* m_item;
int m_enabledActions;
ReceiveAction m_selectedAction;
};
#endif