![]() |
KVIrc 5.2.4
Developer APIs
|
#include <FileTransferWindow.h>
Public Member Functions | |
virtual void | die () |
FileTransferWindow () | |
int | lineSpacing () |
QSize | sizeHint () const override |
~FileTransferWindow () | |
![]() | |
virtual bool | activityMeter (unsigned int *puActivityValue, unsigned int *puActivityTemperature) |
virtual QFrame * | buttonContainer () |
KviIrcConnection * | connection () |
Returns the current IRC connection (if any) | |
KviConsoleWindow * | console () const |
Returns the console that this window belongs to. | |
KviIrcContext * | context () |
void | contextPopup () |
QString | decodeText (const char *pcText) |
virtual QTextCodec * | defaultTextCodec () |
void | delayedAutoRaise () |
void | delayedClose () |
void | demandAttention () |
Notify the window manager that this window demands attention. | |
QByteArray | encodeText (const QString &szText) |
void | forceTextCodec (QTextCodec *pCodec) |
virtual void | getConfigGroupName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer, QDate date, bool bGzip, unsigned int uDatetimeFormat) |
virtual void | getWindowListTipText (QString &szBuffer) |
bool | hasAttention (AttentionLevel eLevel=VisibleAndActive) |
Returns whether this window is the active one. | |
virtual bool | highlightMe (unsigned int uValue) |
virtual bool | highlightMeter (unsigned int *puValue) |
QString | id () const |
Returns the global ID of this window. | |
KviInput * | input () const |
void | internalOutput (KviIrcView *pView, int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
bool | isChannel () const |
bool | isConsole () const |
bool | isDocked () const |
bool | isQuery () const |
KviWindow (Type eType, const QString &szName, KviConsoleWindow *pConsole=nullptr) | |
Constructs the window object. | |
virtual KviIrcView * | lastClickedView () const |
Returns the KviIrcView that was last clicked in this window. | |
const QString & | lastLineOfText () |
const QString & | lastMessageText () |
void | listWindowTypes () |
virtual const QString & | localNick () |
QTextEncoder * | makeEncoder () |
unsigned long int | numericId () const |
Returns the global ID of this window. | |
virtual void | output (int iMsgType, const char *pcFormat,...) |
virtual void | output (int iMsgType, const kvi_wchar_t *pwFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, const char *pcFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, const kvi_wchar_t *pwFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, QString szFmt,...) |
virtual void | output (int iMsgType, QString szFmt,...) |
virtual void | outputNoFmt (int iMsgType, const char *pcText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual void | outputNoFmt (int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual void | outputNoFmt (int iMsgType, const QString &szText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual KviWindow * | outputProxy () |
virtual void | ownAction (const QString &) |
virtual void | ownMessage (const QString &, bool=true) |
void | pasteLastLog () |
Pastes the most recent channel log into the buffer. | |
virtual const QString & | plainTextCaption () |
void | setFixedCaption (const QString &szCaption) |
void | setProgress (int iProgress) |
Sets the progress for the WindowList item. | |
bool | setTextEncoding (const QString &szTextEncoding) |
void | setWindowName (const QString &szName) |
Sets the name of the window. | |
void | setWindowTitle (QString &szTitle) |
KviTalSplitter * | splitter () const |
Returns the splitter of this window. | |
virtual const QString & | target () |
QTextCodec * | textCodec () |
const QString & | textEncoding () const |
virtual void | toggleButtonContainer () |
Type | type () const |
Returns the type of the window. | |
virtual const char * | typeString () |
Returns a descriptive name of the window type. | |
void | unhighlight () |
void | updateBackgrounds (QObject *pObj=nullptr) |
virtual void | updateCaption () |
virtual void | updateIcon () |
KviIrcView * | view () const |
Returns the KviIrcView of this window. | |
KviWindowListItem * | windowListItem () const |
Returns the windowList item. | |
const QString & | windowName () const |
Returns the name of this window. | |
~KviWindow () | |
Destroys the window object. | |
Protected Slots | |
void | clearAll () |
void | clearTerminated () |
void | copyLocalFileToClipboard () |
void | deleteLocalFile () |
void | doubleClicked (FileTransferItem *it, const QPoint &pnt) |
void | heartbeat () |
void | openFilePopupActivated (QAction *pAction) |
void | openLocalFile () |
void | openLocalFileFolder () |
void | openLocalFileTerminal () |
void | openLocalFileWith () |
void | rightButtonPressed (FileTransferItem *it, const QPoint &pnt) |
void | tipRequest (KviDynamicToolTip *tip, const QPoint &pnt) |
void | transferRegistered (KviFileTransfer *t) |
void | transferUnregistering (KviFileTransfer *t) |
![]() | |
void | childDestroyed () |
void | cryptControllerFinished () |
void | cryptSessionInfoDestroyed () |
void | systemTextEncodingPopupActivated (QAction *pAction) |
void | textEncodingButtonClicked () |
void | toggleCryptController () |
Protected Member Functions | |
void | applyOptions () override |
bool | eventFilter (QObject *obj, QEvent *ev) override |
void | fillCaptionBuffers () override |
void | fillTransferView () |
FileTransferItem * | findItem (KviFileTransfer *t) |
void | getBaseLogFileName (QString &buffer) override |
QPixmap * | myIconPtr () override |
void | resizeEvent (QResizeEvent *e) override |
KviFileTransfer * | selectedTransfer () |
![]() | |
void | childEvent (QChildEvent *pEvent) override |
void | childInserted (QWidget *pObject) |
void | childRemoved (QWidget *pObject) |
virtual void | childrenTreeChanged (QWidget *pAdded) |
void | closeEvent (QCloseEvent *pEvent) override |
void | createCryptControllerButton (QWidget *pPar) |
void | createSystemTextEncodingPopup () |
void | createTextEncodingButton (QWidget *pPar) |
QToolButton * | createToolButton (QWidget *pPar, const char *pcName, KviIconManager::SmallIcon eIcon, const QString &szToolTip, bool bOn) |
virtual void | createWindowListItem () |
virtual void | destroyWindowListItem () |
bool | eventFilter (QObject *pObject, QEvent *pEvent) override |
void | fillSingleColorCaptionBuffers (const QString &szName) |
void | focusInEvent (QFocusEvent *) override |
bool | focusNextPrevChild (bool bNext) override |
void | inputMethodEvent (QInputMethodEvent *e) override |
virtual void | loadProperties (KviConfigurationFile *pCfg) |
virtual void | lostUserFocus () |
void | moveEvent (QMoveEvent *pEvent) override |
virtual void | preprocessMessage (QString &szMessage) |
virtual void | saveProperties (KviConfigurationFile *pCfg) |
void | setType (Type eType) |
virtual void | triggerCreationEvents () |
virtual void | triggerDestructionEvents () |
virtual void | youAreDocked () |
virtual void | youAreUndocked () |
Protected Attributes | |
int | m_iLineSpacing |
QMenu * | m_pContextPopup |
QAbstractItemDelegate * | m_pItemDelegate |
QMenu * | m_pLocalFilePopup |
QMenu * | m_pOpenFilePopup |
FileTransferWidget * | m_pTableWidget |
QTimer * | m_pTimer |
QSplitter * | m_pVertSplitter |
![]() | |
bool | m_bIsDocked |
bool | m_bProcessingInputEvent |
Type | m_eType |
KviTalHBox * | m_pButtonBox |
KviConsoleWindow * | m_pConsole |
QWidget * | m_pFocusHandler |
QToolButton * | m_pHideToolsButton |
KviInput * | m_pInput |
KviIrcView * | m_pIrcView |
QWidget * | m_pLastFocusedChild |
KviTalSplitter * | m_pSplitter |
QTextCodec * | m_pTextCodec |
QToolButton * | m_pTextEncodingButton |
KviWindowListItem * | m_pWindowListItem |
QString | m_szName |
QString | m_szPlainTextCaption |
QString | m_szTextEncoding |
unsigned long int | m_uId |
Friends | |
class | FileTransferItem |
class | FileTransferItemDelegate |
Additional Inherited Members | |
![]() | |
enum | ActivityTemperature { Ice = 0 , VeryCold = 1 , Cold = 2 , Undefined = 3 , Hot = 4 , VeryHot = 5 , Fire = 6 } |
Holds the activity meter in temperature scale. More... | |
enum | ActivityValue { None = 0 , VeryLow = 1 , Low = 2 , Medium = 3 , High = 4 , VeryHigh = 5 } |
Holds the activity meter in value scale. More... | |
enum | AttentionLevel { VisibleAndActive = 0 , MainWindowIsVisible = 1 } |
attention levels usable in hasAttention() More... | |
enum | Type { Console = 0 , Channel = 1 , Query = 2 , DeadChannel = 3 , DeadQuery = 4 , Editor = 5 , Help = 6 , Terminal = 7 , SocketSpy = 8 , Links = 9 , List = 10 , DccChat = 11 , DccTransfer = 12 , DccCanvas = 13 , DccVoice = 14 , DccVideo = 15 , UserWindow = 16 , Tool = 17 , IOGraph = 18 , DirBrowser = 19 , ScriptEditor = 20 , ScriptObject = 21 , LogView = 22 , Offer = 23 , Debug = 24 , Unknown = 25 , TypeCount = 26 } |
Holds the types of a window; these are used by the KVIrc core and distributed modules. More... | |
![]() | |
void | autoRaise () |
void | dock () |
void | reloadImages () |
void | savePropertiesAsDefault () |
void | undock () |
![]() | |
void | windowNameChanged () |
![]() | |
static const char * | m_typeTable [TypeCount] |
![]() | |
int | KviProperty_ChildFocusOwner |
FileTransferWindow::FileTransferWindow | ( | ) |
References connect(), doubleClicked(), FileTransferItemDelegate, fillTransferView(), g_pFileTransferWindow, heartbeat(), KviFileTransferManager::instance(), KviTalSplitter, m_iLineSpacing, m_pContextPopup, KviWindow::m_pIrcView, m_pItemDelegate, m_pLocalFilePopup, m_pOpenFilePopup, KviWindow::m_pSplitter, m_pTableWidget, m_pTimer, m_pVertSplitter, rightButtonPressed(), KviFileTransferManager::setTransferWindow(), transferRegistered(), and transferUnregistering().
FileTransferWindow::~FileTransferWindow | ( | ) |
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References KviIrcView::applyOptions(), KviWindow::applyOptions(), and KviWindow::m_pIrcView.
|
protectedslot |
|
protectedslot |
References KviFileTransferManager::instance(), and KviFileTransferManager::killTerminatedTransfers().
Referenced by rightButtonPressed().
|
protectedslot |
References selectedTransfer(), and t.
Referenced by rightButtonPressed().
|
protectedslot |
References __tr2qs_ctx, KviFileTransfer::localFileName(), and selectedTransfer().
Referenced by rightButtonPressed().
|
virtual |
|
protectedslot |
References openLocalFile().
Referenced by FileTransferWindow().
|
overrideprotected |
References KviWindow::eventFilter(), and m_pTableWidget.
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References __tr2qs_ctx, and KviWindow::m_szPlainTextCaption.
|
protected |
References FileTransferItem, KviFileTransferManager::instance(), l, m_pTableWidget, t, and KviFileTransferManager::transferList().
Referenced by FileTransferWindow().
|
protected |
References i, m_pTableWidget, t, and FileTransferItem::transfer().
Referenced by transferUnregistering().
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
|
protectedslot |
References KviFileTransfer::active(), i, m_pTableWidget, and FileTransferItem::transfer().
Referenced by FileTransferWindow().
|
inline |
References m_iLineSpacing.
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References KviIconManager::FileTransfer, g_pIconManager, and KviIconManager::getSmallIcon().
|
protectedslot |
References g_pMainWindow, selectedTransfer(), and t.
Referenced by rightButtonPressed().
|
protectedslot |
References g_pMainWindow, openLocalFileWith(), selectedTransfer(), and t.
Referenced by doubleClicked(), and rightButtonPressed().
|
protectedslot |
References g_pMainWindow, selectedTransfer(), and t.
Referenced by rightButtonPressed().
|
protectedslot |
References selectedTransfer(), and t.
Referenced by rightButtonPressed().
|
protectedslot |
References g_pMainWindow, selectedTransfer(), and t.
Referenced by openLocalFile(), and rightButtonPressed().
|
overrideprotected |
References KviWindow::m_pSplitter.
|
protectedslot |
References __tr2qs_ctx, clearAll(), clearTerminated(), connect(), copyLocalFileToClipboard(), deleteLocalFile(), i, l, KviFileTransfer::localFileName(), m_pContextPopup, m_pLocalFilePopup, m_pOpenFilePopup, m_pTableWidget, KviQString::makeSizeReadable(), openFilePopupActivated(), openLocalFile(), openLocalFileFolder(), openLocalFileTerminal(), openLocalFileWith(), p, KviFileTransfer::terminated(), and FileTransferItem::transfer().
Referenced by FileTransferWindow().
|
protected |
References i, m_pTableWidget, and FileTransferItem::transfer().
Referenced by copyLocalFileToClipboard(), deleteLocalFile(), openFilePopupActivated(), openLocalFile(), openLocalFileFolder(), openLocalFileTerminal(), and openLocalFileWith().
|
override |
References KviWindow::m_pSplitter.
|
protectedslot |
|
protectedslot |
References FileTransferItem, m_pTableWidget, and t.
Referenced by FileTransferWindow().
|
protectedslot |
References findItem(), and t.
Referenced by FileTransferWindow().
|
friend |
Referenced by fillTransferView(), and transferRegistered().
|
friend |
Referenced by FileTransferWindow().
|
protected |
Referenced by FileTransferWindow(), and lineSpacing().
|
protected |
Referenced by FileTransferWindow(), and rightButtonPressed().
|
protected |
Referenced by FileTransferWindow().
|
protected |
Referenced by FileTransferWindow(), and rightButtonPressed().
|
protected |
Referenced by FileTransferWindow(), and rightButtonPressed().
|
protected |
|
protected |
Referenced by FileTransferWindow().
|
protected |
Referenced by FileTransferWindow().