diff --git a/data/icons/protocols/IRC b/data/icons/protocols/IRC new file mode 100644 index 0000000..88531c4 Binary files /dev/null and b/data/icons/protocols/IRC differ diff --git a/data/icons/protocols/IRC.rdef b/data/icons/protocols/IRC.rdef new file mode 100644 index 0000000..512ee55 --- /dev/null +++ b/data/icons/protocols/IRC.rdef @@ -0,0 +1,16 @@ + +resource vector_icon { + $"6E636966040500020106033D835C3C19B2BA8B0B3C20794769624A510E00FFFF" + $"FFB4FFE405FFFFA405020106023D835C3C19B2BA8B0B3C20794769624A510E00" + $"FFE405FFFFA405020106033D429E3C5148BB5ADA3C5C1B4A23AA46EC1800FFFF" + $"FFB47FE583FF04B10C0902093F404644383C273F2E3A244122482245224D2755" + $"245126572256245725582A5828592C5A315C2F5B345D3C5E385E425E4957475C" + $"4D4E02043F4044433D3FBC95BE953B3D333D3D493844424E4A5148534A4A0403" + $"3B2F4E2F4E2D4E2A4D2F532D522F530003334F334F364F345337533755325636" + $"59325602085645C8FEC3AFCA30C0E55E3A5E405EBA4D52B58359B71B4AB38537" + $"B51D3EB31FBA16B69933353130363E4A4641444D475346C657C27B554BCB01C6" + $"35584F5A4F080239BA0539BA6B0802BD1CBC1DBD2FBCA908023E37423904032E" + $"4535473C4739473F4540070A000100123FFFFE2FDACEAFDACE3FFFFE3AB6A5B8" + $"4CC101178400040A010100000A020101000A000202031001178210040A000104" + $"1001178400040A030104000A000407050608100117821004" +}; diff --git a/protocols/irc/IrcProtocol.cpp b/protocols/irc/IrcProtocol.cpp index 486c269..d9f0d61 100644 --- a/protocols/irc/IrcProtocol.cpp +++ b/protocols/irc/IrcProtocol.cpp @@ -12,6 +12,8 @@ #include #include +#include + #include #include @@ -222,6 +224,13 @@ IrcProtocol::SettingsTemplate(const char* name) } +BBitmap* +IrcProtocol::Icon() const +{ + return ReadNodeIcon(fAddOnPath.Path(), B_LARGE_ICON, true); +} + + status_t IrcProtocol::Loop() { diff --git a/protocols/irc/IrcProtocol.h b/protocols/irc/IrcProtocol.h index dcfcf23..4a7e19d 100644 --- a/protocols/irc/IrcProtocol.h +++ b/protocols/irc/IrcProtocol.h @@ -38,6 +38,8 @@ public: virtual const char* Signature() const { return "irc"; } virtual const char* FriendlySignature() const { return "IRC"; } + virtual BBitmap* Icon() const; + virtual void SetAddOnPath(BPath path) { fAddOnPath = path; } virtual BPath AddOnPath() { return fAddOnPath; } diff --git a/protocols/irc/Makefile b/protocols/irc/Makefile index b7d5754..a943a04 100644 --- a/protocols/irc/Makefile +++ b/protocols/irc/Makefile @@ -39,7 +39,8 @@ SRCS = \ # Specify the resource definition files to use. Full or relative paths can be # used. RDEFS = \ -# protocols/irc/irc.rdef \ + data/icons/protocols/IRC.rdef \ + protocols/irc/irc.rdef \ # Specify the resource files to use. Full or relative paths can be used. # Both RDEFS and RSRCS can be utilized in the same Makefile. @@ -136,3 +137,5 @@ include $(DEVEL_DIRECTORY)/etc/makefile-engine include Makefile.common include protocols/Makefile.common + +CATKEYS_DIR = locales/irc diff --git a/protocols/irc/irc.rdef b/protocols/irc/irc.rdef index 55581f8..6bc6b5b 100644 --- a/protocols/irc/irc.rdef +++ b/protocols/irc/irc.rdef @@ -7,7 +7,7 @@ resource app_version { variety = B_APPV_ALPHA, internal = 0, - short_info = "IRC Protocol AddOn", + short_info = "Cardie IRC add-on", long_info = "©2021 Jaidyn Levesque" };