Skip to content

Commit

Permalink
opt: use qtcpsocket signal to implement the dictserver protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
YiFang Xiao authored and xiaoyifang committed Dec 30, 2023
1 parent 619e7e0 commit fa7b3db
Show file tree
Hide file tree
Showing 2 changed files with 564 additions and 495 deletions.
4 changes: 4 additions & 0 deletions src/dict/dictionary.hh
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ public:
hasAnyData( false )
{
}
signals:
void finishedArticle( QString articleText );

protected:
bool hasAnyData; // With this being false, dataSize() always returns -1
Expand All @@ -235,6 +237,8 @@ protected:
/// A helper class for synchronous word search implementations.
class WordSearchRequestInstant: public WordSearchRequest
{
Q_OBJECT

public:

WordSearchRequestInstant()
Expand Down
Loading

0 comments on commit fa7b3db

Please sign in to comment.