Skip to content

Commit

Permalink
Merge branch 'master' into refactor_udp
Browse files Browse the repository at this point in the history
  • Loading branch information
lidaobing authored May 15, 2024
2 parents 6c78773 + c27a8d2 commit d7506f0
Show file tree
Hide file tree
Showing 37 changed files with 174 additions and 200 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ jobs:
matrix:
include:
- arch: aarch64
distro: ubuntu20.04
distro: ubuntu22.04
- arch: ppc64le
distro: ubuntu20.04
distro: ubuntu22.04
#- arch: s390x
# distro: ubuntu20.04
- arch: armv7
distro: ubuntu20.04
#- arch: armv6
distro: ubuntu22.04
#- arch: armv7
# distro: bookworm

steps:
Expand Down
11 changes: 11 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
Version 0.9.1
~~~~~~~~~~~~~
Released: 2024-05-12

Bugfixes:
* [#577] fix UT timeout when run without browser and a new meson version.

Translation:
* [#576] update Spanish translation. Thanks to gallegonovato.
* [#579] update Traditional Chinese translation. Thanks to xiao sheng wen.

Version 0.9.0
~~~~~~~~~~~~~
Released: 2024-05-09
Expand Down
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
project('iptux', 'cpp',
license: 'GPL2+',
version: '0.9.0',
version: '0.9.1',
default_options: ['warning_level=3', 'cpp_std=c++14'])
add_global_arguments('-Werror=format', language : 'cpp')
so_version = '0.9.0'
so_version = '0.9.1'
subdir('src')
subdir('share')
subdir('po')
Expand Down
2 changes: 1 addition & 1 deletion po/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2013-04-15 18:07+0000\n"
"Last-Translator: Jakub Jezbera <Unknown>\n"
"Language-Team: Czech <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2021-05-17 00:40+0000\n"
"Last-Translator: J. Lavoie <[email protected]>\n"
"Language-Team: German <https://hosted.weblate.org/projects/iptux/iptux/de/>\n"
Expand Down
2 changes: 1 addition & 1 deletion po/en_GB.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2018-01-22 06:45+0000\n"
"Last-Translator: zhangjiejing <Unknown>\n"
"Language-Team: English (United Kingdom) <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2024-05-11 08:00+0000\n"
"Last-Translator: gallegonovato <[email protected]>\n"
"Language-Team: Spanish <https://hosted.weblate.org/projects/iptux/iptux/es/"
Expand Down
2 changes: 1 addition & 1 deletion po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2021-05-17 00:40+0000\n"
"Last-Translator: J. Lavoie <[email protected]>\n"
"Language-Team: French <https://hosted.weblate.org/projects/iptux/iptux/fr/>\n"
Expand Down
2 changes: 1 addition & 1 deletion po/gl.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2010-05-03 13:06+0000\n"
"Last-Translator: Dario <[email protected]>\n"
"Language-Team: Galician <[email protected]>\n"
Expand Down
4 changes: 2 additions & 2 deletions po/iptux.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: iptux 0.9.0\n"
"Project-Id-Version: iptux 0.9.1\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2021-05-17 00:40+0000\n"
"Last-Translator: J. Lavoie <[email protected]>\n"
"Language-Team: Italian <https://hosted.weblate.org/projects/iptux/iptux/it/"
Expand Down
2 changes: 1 addition & 1 deletion po/lb.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2010-08-30 21:09+0000\n"
"Last-Translator: n0a3n <[email protected]>\n"
"Language-Team: Luxembourgish <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion po/nb_NO.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux 0.8.0-b2\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2021-05-10 08:34+0000\n"
"Last-Translator: Allan Nordhøy <[email protected]>\n"
"Language-Team: Norwegian Bokmål <https://hosted.weblate.org/projects/iptux/"
Expand Down
2 changes: 1 addition & 1 deletion po/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2024-03-18 15:02+0000\n"
"Last-Translator: Eryk Michalak <[email protected]>\n"
"Language-Team: Polish <https://hosted.weblate.org/projects/iptux/iptux/pl/>\n"
Expand Down
2 changes: 1 addition & 1 deletion po/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux 0.8.3\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2023-03-19 11:37+0000\n"
"Last-Translator: ssantos <[email protected]>\n"
"Language-Team: Portuguese <https://hosted.weblate.org/projects/iptux/iptux/"
Expand Down
2 changes: 1 addition & 1 deletion po/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2021-11-23 16:33+0000\n"
"Last-Translator: inkhorn <[email protected]>\n"
"Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/"
Expand Down
2 changes: 1 addition & 1 deletion po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2021-04-11 23:02+0000\n"
"Last-Translator: Artem <[email protected]>\n"
"Language-Team: Russian <https://hosted.weblate.org/projects/iptux/iptux/ru/"
Expand Down
2 changes: 1 addition & 1 deletion po/uk.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2024-01-08 13:06+0000\n"
"Last-Translator: Сергій <[email protected]>\n"
"Language-Team: Ukrainian <https://hosted.weblate.org/projects/iptux/iptux/uk/"
Expand Down
2 changes: 1 addition & 1 deletion po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux 0.6.3\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2024-05-13 03:47+0000\n"
"Last-Translator: LI Daobing <[email protected]>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
Expand Down
16 changes: 5 additions & 11 deletions po/zh_TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: iptux 0.6.3\n"
"Report-Msgid-Bugs-To: https://github.com/iptux-src/iptux/issues/new\n"
"POT-Creation-Date: 2024-05-12 20:36-0700\n"
"POT-Creation-Date: 2024-05-12 22:10-0700\n"
"PO-Revision-Date: 2010-03-26 00:21+0800\n"
"Last-Translator: zhangjiejing <[email protected]>\n"
"Language-Team: Chinese (traditional) <[email protected]>\n"
Expand Down Expand Up @@ -975,11 +975,11 @@ msgstr ""
msgid "Can't open URL: %s, reason: %s"
msgstr ""

#: src/iptux/UiHelper.cpp:174 src/iptux/UiHelper.cpp:169
#: src/iptux/UiHelper.cpp:174
msgid "Information"
msgstr "資訊"

#: src/iptux/UiHelper.cpp:204 src/iptux/UiHelper.cpp:199
#: src/iptux/UiHelper.cpp:204
msgid "Warning"
msgstr "警告"

Expand Down Expand Up @@ -1367,14 +1367,8 @@ msgstr ""
msgid "option parsing failed: %s\n"
msgstr "打開目錄\"%s\"失敗,%s"

#: src/iptux/UiHelper.cpp:51
msgid "Can't find any available web browser!\n"
msgstr "未發現可用的瀏覽器!\n"

#: src/iptux/UiHelper.cpp:28
#, c-format
msgid "Open URL: %s\n"
msgstr ""
#~ msgid "Can't find any available web browser!\n"
#~ msgstr "未發現可用的瀏覽器!\n"

#, fuzzy
#~ msgid "Close Chat"
Expand Down
18 changes: 13 additions & 5 deletions share/metainfo/io.github.iptux_src.iptux.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@

<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
<content_rating type="oars-1.0"/>
<content_rating type="oars-1.0" />

<description>
<p>
iptux is an “IP Messenger” client. The features of iptux include:
</p>
<ul>
<li>auto-detect other clients on the intranet.</li>
<li>send/recv messages to other clients.</li>
<li>send/recv files to other clients.</li>
<li>share your files to other cliens (with optional password protection).</li>
<li>auto-detect other clients on the intranet.</li>
<li>send/recv messages to other clients.</li>
<li>send/recv files to other clients.</li>
<li>share your files to other cliens (with optional password protection).</li>
</ul>
<p>
It is (supposedly) compatible with 飞鸽传书 (Feige) and 飞秋 (FeiQ) from China,
Expand All @@ -40,6 +40,14 @@
<category>GTK</category>
</categories>

<keywords>
<keyword>chat</keyword>
<keyword>im</keyword>
<keyword>file transfer</keyword>
<keyword>ipmsg</keyword>
<keyword>feige</keyword>
</keywords>

<translation type="gettext">iptux</translation>
<url type="homepage">https://github.com/iptux-src/iptux</url>
<url type="bugtracker">https://github.com/iptux-src/iptux/issues</url>
Expand Down
3 changes: 2 additions & 1 deletion src/api/iptux-core/CoreThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ class CoreThread {
* @return std::shared_ptr<const Event>
*/
std::shared_ptr<const Event> getLastEvent() const;
bool HasEvent() const;
std::shared_ptr<const Event> PopEvent();

const std::string& GetAccessPublicLimit() const;
void SetAccessPublicLimit(const std::string& val);
Expand Down Expand Up @@ -193,7 +195,6 @@ class CoreThread {

private:
void bind_iptux_port();
void processEvents();

private:
static void RecvUdpData(CoreThread* pcthrd);
Expand Down
50 changes: 24 additions & 26 deletions src/api/iptux-core/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,32 @@ enum class EventType {
CONFIG_CHANGED,
};

const char* EventTypeToStr(EventType type);

class Event {
public:
explicit Event(EventType type);
virtual ~Event() = default;

EventType getType() const;
virtual std::string getSource() const;

private:
EventType type;
};

class NewPalOnlineEvent : public Event {
class PalEvent : public Event {
public:
explicit PalEvent(PalKey palKey, EventType type)
: Event(type), palKey(palKey) {}
const PalKey& GetPalKey() const { return palKey; }
std::string getSource() const override;

private:
PalKey palKey;
};

class NewPalOnlineEvent : public PalEvent {
public:
explicit NewPalOnlineEvent(CPPalInfo palInfo);
CPPalInfo getPalInfo() const;
Expand All @@ -42,7 +56,7 @@ class NewPalOnlineEvent : public Event {
CPPalInfo palInfo;
};

class PalUpdateEvent : public Event {
class PalUpdateEvent : public PalEvent {
public:
explicit PalUpdateEvent(CPPalInfo palInfo);
CPPalInfo getPalInfo() const;
Expand All @@ -51,7 +65,7 @@ class PalUpdateEvent : public Event {
CPPalInfo palInfo;
};

class NewMessageEvent : public Event {
class NewMessageEvent : public PalEvent {
public:
explicit NewMessageEvent(MsgPara&& msgPara);
const MsgPara& getMsgPara() const;
Expand All @@ -60,43 +74,27 @@ class NewMessageEvent : public Event {
MsgPara msgPara;
};

class PalOfflineEvent : public Event {
class PalOfflineEvent : public PalEvent {
public:
explicit PalOfflineEvent(PalKey palKey);
const PalKey& GetPalKey() const;

private:
PalKey palKey;
};

class IconUpdateEvent : public Event {
class IconUpdateEvent : public PalEvent {
public:
explicit IconUpdateEvent(PalKey palKey)
: Event(EventType::ICON_UPDATE), palKey(palKey) {}
const PalKey& GetPalKey() const { return palKey; }

private:
PalKey palKey;
: PalEvent(palKey, EventType::ICON_UPDATE) {}
};

class PasswordRequiredEvent : public Event {
class PasswordRequiredEvent : public PalEvent {
public:
explicit PasswordRequiredEvent(PalKey palKey)
: Event(EventType::PASSWORD_REQUIRED), palKey(palKey) {}
const PalKey& GetPalKey() const { return palKey; }

private:
PalKey palKey;
: PalEvent(palKey, EventType::PASSWORD_REQUIRED) {}
};

class PermissionRequiredEvent : public Event {
class PermissionRequiredEvent : public PalEvent {
public:
explicit PermissionRequiredEvent(PalKey palKey)
: Event(EventType::PERMISSION_REQUIRED), palKey(palKey) {}
const PalKey& GetPalKey() const { return palKey; }

private:
PalKey palKey;
: PalEvent(palKey, EventType::PERMISSION_REQUIRED) {}
};

class NewShareFileFromFriendEvent : public Event {
Expand Down
Loading

0 comments on commit d7506f0

Please sign in to comment.