KVIrc
4.9.2
DeveloperAPIs
|
#include <DccVideoWindow.h>
Public Member Functions | |
DccVideoWindow (DccDescriptor *dcc, const char *name) | |
~DccVideoWindow () | |
Public Member Functions inherited from DccWindow | |
virtual const char * | dccMarshalOutputContextString () |
virtual KviWindow * | dccMarshalOutputWindow () |
DccWindow (KviWindow::Type eType, const char *name, DccDescriptor *d) | |
DccDescriptor * | descriptor () |
virtual DccThread * | getSlaveThread () |
const DccMarshal * | marshal () |
~DccWindow () | |
Public Member Functions inherited from KviWindow | |
virtual bool | activityMeter (unsigned int *puActivityValue, unsigned int *puActivityTemperature) |
virtual void | applyOptions () |
virtual QFrame * | buttonContainer () |
KviIrcConnection * | connection () |
Returns the current IRC connection (if any) More... | |
KviConsoleWindow * | console () |
Returns the console that this window belongs to. More... | |
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. More... | |
QByteArray | encodeText (const QString &szText) |
void | forceTextCodec (QTextCodec *pCodec) |
virtual void | getConfigGroupName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer) |
virtual void | getWindowListTipText (QString &szBuffer) |
bool | hasAttention (AttentionLevel eLevel=VisibleAndActive) |
Returns whether this window is the active one. More... | |
virtual bool | highlightMe (unsigned int uValue) |
virtual bool | highlightMeter (unsigned int *puValue) |
QString | id () |
Returns the global ID of this window. More... | |
KviInput * | input () |
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 () |
bool | isQuery () const |
KviWindow (Type eType, const QString &szName, KviConsoleWindow *pConsole=0) | |
Constructs the window object. More... | |
const QString & | lastLineOfText () |
const QString & | lastMessageText () |
void | listWindowTypes () |
QTextEncoder * | makeEncoder () |
unsigned long int | numericId () |
Returns the global ID of this window. More... | |
virtual void | output (int iMsgType, const char *pcFormat,...) |
virtual void | output (int iMsgType, const kvi_wchar_t *pwFormat,...) |
virtual void | output (int iMsgType, QString szFmt,...) |
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 | 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 const QString & | plainTextCaption () |
void | setFixedCaption (const QString &szCaption) |
void | setProgress (int iProgress) |
Sets the progress for the WindowList item. More... | |
bool | setTextEncoding (const QString &szTextEncoding) |
void | setWindowName (const QString &szName) |
Sets the name of the window. More... | |
void | setWindowTitle (QString &szTitle) |
KviTalSplitter * | splitter () |
Returns the splitter of this window. More... | |
QTextCodec * | textCodec () |
const QString & | textEncoding () |
virtual void | toggleButtonContainer () |
Type | type () const |
Returns the type of the window. More... | |
virtual const char * | typeString () |
Returns a descriptive name of the window type. More... | |
void | unhighlight () |
void | updateBackgrounds (QObject *pObj=0) |
virtual void | updateCaption () |
virtual void | updateIcon () |
KviIrcView * | view () const |
Returns the KviIrcView of this window. More... | |
KviWindowListItem * | windowListItem () |
Returns the windowList item. More... | |
const QString & | windowName () |
Returns the name of this window. More... | |
virtual | ~KviWindow () |
Destroys the window object. More... | |
Public Member Functions inherited from DccMarshalOutputContext | |
DccMarshalOutputContext () | |
virtual | ~DccMarshalOutputContext () |
Protected Slots | |
void | connected () |
void | connectionInProgress () |
void | handleMarshalError (KviError::Code eError) |
void | slotUpdateImage () |
void | startOrStopTalking (bool bStart) |
void | textViewRightClicked () |
void | videoInputChanged (int) |
Protected Slots inherited from KviWindow | |
void | childDestroyed () |
void | cryptControllerFinished () |
void | cryptSessionInfoDestroyed () |
void | systemTextEncodingPopupActivated (QAction *pAction) |
void | textEncodingButtonClicked () |
void | toggleCryptController () |
Protected Member Functions | |
virtual bool | event (QEvent *e) |
virtual void | fillCaptionBuffers () |
virtual void | getBaseLogFileName (QString &buffer) |
virtual const QString & | localNick () |
virtual QPixmap * | myIconPtr () |
virtual void | ownAction (const QString &text) |
virtual void | ownMessage (const QString &text, bool bUserFeedback=true) |
virtual void | resizeEvent (QResizeEvent *) |
virtual QSize | sizeHint () const |
void | startConnection () |
void | startTalking () |
void | stopTalking () |
virtual const QString & | target () |
virtual void | triggerCreationEvents () |
virtual void | triggerDestructionEvents () |
Protected Member Functions inherited from KviWindow | |
virtual void | childEvent (QChildEvent *pEvent) |
void | childInserted (QWidget *pObject) |
void | childRemoved (QWidget *pObject) |
virtual void | childrenTreeChanged (QWidget *pAdded) |
virtual void | closeEvent (QCloseEvent *pEvent) |
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) |
void | fillSingleColorCaptionBuffers (const QString &szName) |
virtual void | focusInEvent (QFocusEvent *) |
virtual bool | focusNextPrevChild (bool bNext) |
virtual void | inputMethodEvent (QInputMethodEvent *e) |
virtual void | loadProperties (KviConfigurationFile *pCfg) |
virtual void | lostUserFocus () |
virtual void | moveEvent (QMoveEvent *pEvent) |
virtual void | preprocessMessage (QString &szMessage) |
virtual void | saveProperties (KviConfigurationFile *pCfg) |
void | setType (Type eType) |
virtual void | youAreDocked () |
virtual void | youAreUndocked () |
Friends | |
class | DccVideoThread |
Additional Inherited Members | |
Public Types inherited from KviWindow | |
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... | |
Public Slots inherited from KviWindow | |
void | autoRaise () |
void | dock () |
void | reloadImages () |
void | savePropertiesAsDefault () |
void | undock () |
Signals inherited from KviWindow | |
void | windowNameChanged () |
Static Protected Attributes inherited from KviWindow | |
static const char * | m_typeTable [TypeCount] |
Properties inherited from KviWindow | |
int | KviProperty_ChildFocusOwner |
DccVideoWindow::DccVideoWindow | ( | DccDescriptor * | dcc, |
const char * | name | ||
) |
References __tr2qs_ctx(), connect(), connected(), connectionInProgress(), KviWindow::createCryptControllerButton(), KviWindow::createTextEncodingButton(), DccMarshalOutputContext::DccMarshal, FRAME_DURATION, handleMarshalError(), KVI_OPTION_BOOL, KviWindow::KviInput, KviOption_boolAutoLogDccChat, KviTalSplitter, KviWindow::m_pButtonBox, m_pCamera, m_pCameraImage, m_pCameraView, m_pCDevices, m_pCInputs, m_pContainerWidget, m_pCStandards, DccWindow::m_pDescriptor, KviWindow::m_pInput, m_pInVideoLabel, KviWindow::m_pIrcView, m_pLabel, m_pLayout, DccWindow::m_pMarshal, m_pSlaveThread, KviWindow::m_pSplitter, m_pszTarget, m_pVideoLabel, m_Timer, KviTalHBox::setStretchFactor(), slotUpdateImage(), startConnection(), KviIrcView::startLogging(), textViewRightClicked(), and videoInputChanged().
DccVideoWindow::~DccVideoWindow | ( | ) |
|
protectedslot |
References __tr2qs_ctx(), DccDescriptor::bActive, DccVideoThread, kvi_dcc_video_get_codec(), KVI_OUT_DCCMSG, DccMarshal::localIp(), DccMarshal::localPort(), DccWindow::m_pDescriptor, DccWindow::m_pMarshal, m_pSlaveThread, DccVideoCodec::name(), KviWindow::output(), _KviDccVideoThreadOptions::pCodec, KviCString::ptr(), DccMarshal::releaseSocket(), DccMarshal::remoteIp(), DccMarshal::remotePort(), DccDescriptor::szCodec, DccDescriptor::szHost, DccDescriptor::szIp, DccDescriptor::szPort, and KviWindow::updateCaption().
Referenced by DccVideoWindow().
|
protectedslot |
References __tr2qs_ctx(), DccDescriptor::bActive, DccDescriptor::bSendRequest, KviWindow::connection(), DccDescriptor::console(), KviIrcConnection::encodeText(), DccDescriptor::iSampleRate, KVI_OUT_DCCMSG, DccMarshal::localIp(), DccMarshal::localPort(), DccWindow::m_pDescriptor, DccWindow::m_pMarshal, KviWindow::output(), KviCString::ptr(), KviIrcConnection::sendFmtData(), KviNetUtils::stringIpToBinaryIp(), DccDescriptor::szCodec, DccDescriptor::szFakeIp, DccDescriptor::szFakePort, DccDescriptor::szIp, DccDescriptor::szListenIp, DccDescriptor::szNick, and DccDescriptor::szPort.
Referenced by DccVideoWindow().
|
protectedvirtual |
References __tr2qs_ctx(), __tr_no_xgettext_ctx, KviCString::cutLeft(), KviCString::cutRight(), d, KviIconManager::DccChatMsg, KviWindow::decodeText(), KviCryptEngine::DecryptOkWasEncoded, KviCryptEngine::DecryptOkWasEncrypted, KviCryptEngine::DecryptOkWasPlainText, KviWindow::demandAttention(), KviCString::firstCharIs(), KviMainWindow::firstConsole(), g_pApp, g_pMainWindow, KviError::getDescription(), KviWindow::hasAttention(), DccDescriptor::idString(), KVI_DCC_THREAD_EVENT_ACTION, KVI_DCC_THREAD_EVENT_DATA, KVI_DCC_THREAD_EVENT_ERROR, KVI_DCC_THREAD_EVENT_MESSAGE, KVI_DCC_VIDEO_THREAD_ACTION_GRAB_FRAME, KVI_DCC_VIDEO_THREAD_ACTION_START_PLAYING, KVI_DCC_VIDEO_THREAD_ACTION_START_RECORDING, KVI_DCC_VIDEO_THREAD_ACTION_STOP_PLAYING, KVI_DCC_VIDEO_THREAD_ACTION_STOP_RECORDING, KVI_OPTION_BOOL, KVI_OPTION_MSGTYPE, KVI_OPTION_UINT, KVI_OUT_ACTION, KVI_OUT_DCCCHATMSG, KVI_OUT_DCCERROR, KVI_OUT_DCCMSG, KVI_OUT_SYSTEMERROR, kvi_strEqualCIN(), KVI_THREAD_EVENT, KviEvent_OnDCCChatMessage, KviOption_boolFlashDccChatWindowOnNewMessages, KviOption_boolPopupNotifierOnNewDccChatMessages, KviOption_uintNotifierAutoHideTime, KVS_TRIGGER_EVENT_2_HALTED, KviCString::lastCharIs(), m_pCameraImage, m_pCameraView, DccWindow::m_pDescriptor, KviWindow::MainWindowIsVisible, KviApplication::notifierMessage(), KviWindow::output(), KviWindow::outputNoFmt(), KviConsoleWindow::outputPrivmsg(), KviCString::ptr(), KviCString::stripLeftWhiteSpace(), DccDescriptor::szHost, DccDescriptor::szNick, DccDescriptor::szUser, and KviQString::toHtmlEscaped().
|
protectedvirtual |
Reimplemented from KviWindow.
References KviCString::Format, DccWindow::m_pDescriptor, KviWindow::m_szPlainTextCaption, DccDescriptor::szIp, DccDescriptor::szLocalFileName, DccDescriptor::szNick, and DccDescriptor::szPort.
|
protectedvirtual |
Reimplemented from KviWindow.
References DccWindow::m_pDescriptor, DccDescriptor::szLocalFileName, DccDescriptor::szNick, and DccDescriptor::szPort.
|
protectedslot |
References __tr2qs_ctx(), KviError::getDescription(), KVI_OUT_DCCERROR, and KviWindow::output().
Referenced by DccVideoWindow(), and startConnection().
|
protectedvirtual |
Reimplemented from KviWindow.
References DccWindow::m_pDescriptor, m_szLocalNick, and DccDescriptor::szLocalNick.
|
protectedvirtual |
Reimplemented from KviWindow.
References KviIconManager::DccVoice, g_pIconManager, and KviIconManager::getSmallIcon().
|
protectedvirtual |
Reimplemented from KviWindow.
References __tr2qs_ctx(), d, KviWindow::encodeText(), KviCString::Format, KVI_OPTION_BOOL, KVI_OUT_ACTION, KVI_OUT_SYSTEMWARNING, KviOption_boolStripMircColorsInUserMessages, KviCString::len(), DccWindow::m_pDescriptor, m_pSlaveThread, m_tmpTextDataOut, KviWindow::output(), KviCString::ptr(), KviControlCodes::stripControlBytes(), and DccDescriptor::szLocalNick.
|
protectedvirtual |
Reimplemented from KviWindow.
References __tr2qs_ctx(), KviControlCodes::CryptEscape, d, KviWindow::decodeText(), KviCryptEngine::Encoded, KviWindow::encodeText(), KviCryptEngine::Encrypted, KviMainWindow::firstConsole(), KviCString::Format, g_pMainWindow, KVI_OUT_OWNPRIVMSG, KVI_OUT_OWNPRIVMSGCRYPTED, KVI_OUT_SYSTEMERROR, KVI_OUT_SYSTEMWARNING, KviCString::len(), DccWindow::m_pDescriptor, m_pSlaveThread, m_tmpTextDataOut, KviConsoleWindow::NoNotifications, KviWindow::output(), KviConsoleWindow::outputPrivmsg(), KviCString::ptr(), DccDescriptor::szLocalHost, DccDescriptor::szLocalNick, and DccDescriptor::szLocalUser.
|
protectedvirtual |
References KviInput::heightHint(), KviWindow::m_pButtonBox, KviWindow::m_pInput, and KviWindow::m_pSplitter.
|
protectedvirtual |
References KviWindow::m_pButtonBox, m_pContainerWidget, and KviWindow::m_pSplitter.
|
protectedslot |
References DccVideoThread::m_inImage, m_pInVideoLabel, and m_pSlaveThread.
Referenced by DccVideoWindow().
|
protected |
References __tr2qs_ctx(), DccDescriptor::bActive, DccDescriptor::bDoTimeout, DccMarshal::dccConnect(), DccMarshal::dccListen(), handleMarshalError(), KVI_OUT_DCCMSG, DccWindow::m_pDescriptor, DccWindow::m_pMarshal, KviWindow::output(), KviError::Success, DccDescriptor::szIp, DccDescriptor::szListenIp, DccDescriptor::szListenPort, and DccDescriptor::szPort.
Referenced by DccVideoWindow().
|
protectedslot |
References startTalking(), and stopTalking().
|
protected |
References e, KviSensitiveThread::enqueueEvent(), KVI_DCC_THREAD_EVENT_ACTION, m_pSlaveThread, and KviThreadDataEvent< TData >::setData().
Referenced by startOrStopTalking().
|
protected |
References e, KviSensitiveThread::enqueueEvent(), KVI_DCC_THREAD_EVENT_ACTION, m_pSlaveThread, and KviThreadDataEvent< TData >::setData().
Referenced by startOrStopTalking().
|
protectedvirtual |
Reimplemented from KviWindow.
References DccWindow::m_pDescriptor, m_pszTarget, DccDescriptor::szIp, DccDescriptor::szNick, and DccDescriptor::szPort.
|
protectedslot |
References DccDescriptor::idString(), KviEvent_OnDCCChatPopupRequest, KVS_TRIGGER_EVENT_1, and DccWindow::m_pDescriptor.
Referenced by DccVideoWindow().
|
protectedvirtual |
Reimplemented from KviWindow.
References DccDescriptor::idString(), KviEvent_OnDCCChatWindowCreated, KVS_TRIGGER_EVENT_1, and DccWindow::m_pDescriptor.
|
protectedvirtual |
Reimplemented from KviWindow.
References DccDescriptor::idString(), KviEvent_OnDCCChatWindowClosing, KVS_TRIGGER_EVENT_1, and DccWindow::m_pDescriptor.
|
protectedslot |
Referenced by DccVideoWindow().
|
friend |
Referenced by connected().
|
protected |
Referenced by DccVideoWindow(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), event(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), event(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), and sizeHint().
|
protected |
Referenced by DccVideoWindow(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), slotUpdateImage(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), and ~DccVideoWindow().
|
protected |
Referenced by connected(), DccVideoWindow(), ownAction(), ownMessage(), slotUpdateImage(), startTalking(), stopTalking(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), target(), and ~DccVideoWindow().
|
protected |
Referenced by DccVideoWindow(), and ~DccVideoWindow().
|
protected |
Referenced by localNick().
|
protected |
Referenced by DccVideoWindow().
|
protected |
Referenced by ownAction(), and ownMessage().