Changeset View
Changeset View
Standalone View
Standalone View
src/irc/server.h
Show All 30 Lines | |||||
31 | #ifdef HAVE_QCA2 | 31 | #ifdef HAVE_QCA2 | ||
32 | #include "cipher.h" | 32 | #include "cipher.h" | ||
33 | #endif | 33 | #endif | ||
34 | 34 | | |||
35 | #include <QTimer> | 35 | #include <QTimer> | ||
36 | #include <QPointer> | 36 | #include <QPointer> | ||
37 | 37 | | |||
38 | #include <QHostInfo> | 38 | #include <QHostInfo> | ||
39 | #include <QSslSocket> | ||||
39 | 40 | | |||
40 | #include <QExplicitlySharedDataPointer> | 41 | #include <QExplicitlySharedDataPointer> | ||
41 | #include <kprocess.h> | 42 | #include <kprocess.h> | ||
42 | #include <ktcpsocket.h> | | |||
43 | #include <preferences.h> | 43 | #include <preferences.h> | ||
44 | 44 | | |||
45 | class QAbstractItemModel; | 45 | class QAbstractItemModel; | ||
46 | class QStringListModel; | 46 | class QStringListModel; | ||
47 | class Channel; | 47 | class Channel; | ||
48 | class Query; | 48 | class Query; | ||
49 | class Identity; | 49 | class Identity; | ||
50 | class RawLog; | 50 | class RawLog; | ||
▲ Show 20 Lines • Show All 517 Lines • ▼ Show 20 Line(s) | 564 | protected Q_SLOTS: | |||
568 | void socketConnected(); | 568 | void socketConnected(); | ||
569 | void startAwayTimer(); | 569 | void startAwayTimer(); | ||
570 | void incoming(); | 570 | void incoming(); | ||
571 | void processIncomingData(); | 571 | void processIncomingData(); | ||
572 | /// Sends the QString to the socket. No longer has any internal concept of queueing | 572 | /// Sends the QString to the socket. No longer has any internal concept of queueing | ||
573 | void toServer(QString&, IRCQueue *); | 573 | void toServer(QString&, IRCQueue *); | ||
574 | /// Because KBufferedSocket has no closed(int) signal we use this slot to call broken(0) | 574 | /// Because KBufferedSocket has no closed(int) signal we use this slot to call broken(0) | ||
575 | void closed(); | 575 | void closed(); | ||
576 | void broken(KTcpSocket::Error error); | 576 | void broken(QAbstractSocket::SocketError error); | ||
577 | /** This is connected to the SSLSocket failed. | 577 | /** This is connected to the SSLSocket failed. | ||
578 | * @param reason The reason why this failed. This is already translated, ready to show the user. | 578 | * @param reason The reason why this failed. This is already translated, ready to show the user. | ||
579 | */ | 579 | */ | ||
580 | void sslError(const QList<KSslError>&); | 580 | void sslError(const QList<QSslError>&); | ||
581 | void connectionEstablished(const QString& ownHost); | 581 | void connectionEstablished(const QString& ownHost); | ||
582 | void notifyResponse(const QString& nicksOnline); | 582 | void notifyResponse(const QString& nicksOnline); | ||
583 | 583 | | |||
584 | void slotNewDccTransferItemQueued(Konversation::DCC::Transfer* transfer); | 584 | void slotNewDccTransferItemQueued(Konversation::DCC::Transfer* transfer); | ||
585 | void startReverseDccSendTransfer(const QString& sourceNick,const QStringList& dccArguments); | 585 | void startReverseDccSendTransfer(const QString& sourceNick,const QStringList& dccArguments); | ||
586 | void startReverseDccChat(const QString &sourceNick, const QStringList &dccArgument); | 586 | void startReverseDccChat(const QString &sourceNick, const QStringList &dccArgument); | ||
587 | void addDccGet(const QString& sourceNick,const QStringList& dccArguments); | 587 | void addDccGet(const QString& sourceNick,const QStringList& dccArguments); | ||
588 | void requestDccSend(); // -> to outputFilter, dccPanel | 588 | void requestDccSend(); // -> to outputFilter, dccPanel | ||
▲ Show 20 Lines • Show All 144 Lines • ▼ Show 20 Line(s) | 636 | protected: | |||
733 | 733 | | |||
734 | QString m_channelPrefixes; // prefixes that indicate channel names. defaults to RFC1459 "#&" | 734 | QString m_channelPrefixes; // prefixes that indicate channel names. defaults to RFC1459 "#&" | ||
735 | int m_modesCount; // Maximum number of channel modes with parameter allowed per MODE command. | 735 | int m_modesCount; // Maximum number of channel modes with parameter allowed per MODE command. | ||
736 | 736 | | |||
737 | bool m_autoJoin; | 737 | bool m_autoJoin; | ||
738 | 738 | | |||
739 | QStringList m_autoJoinCommands; | 739 | QStringList m_autoJoinCommands; | ||
740 | 740 | | |||
741 | KTcpSocket* m_socket; | 741 | QSslSocket *m_socket; | ||
742 | 742 | | |||
743 | QTimer m_incomingTimer; | 743 | QTimer m_incomingTimer; | ||
744 | QTimer m_notifyTimer; | 744 | QTimer m_notifyTimer; | ||
745 | QStringList m_notifyCache; // List of users found with ISON | 745 | QStringList m_notifyCache; // List of users found with ISON | ||
746 | int m_checkTime; // Time elapsed while waiting for server 303 response | 746 | int m_checkTime; // Time elapsed while waiting for server 303 response | ||
747 | int m_currentLag; | 747 | int m_currentLag; | ||
748 | 748 | | |||
749 | QStringList m_inputBuffer; | 749 | QStringList m_inputBuffer; | ||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |