Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
Initial notification implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
curoviyxru committed Apr 2, 2022
1 parent 186eeaa commit acfde15
Show file tree
Hide file tree
Showing 15 changed files with 377 additions and 227 deletions.
6 changes: 4 additions & 2 deletions client.pro
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ SOURCES += src/main.cpp \
src/historywindow.cpp \
src/avatars.cpp \
src/messages.cpp \
src/messagelabel.cpp
src/messagelabel.cpp \
src/devicehelper.cpp

HEADERS += src/mainwindow.h \
src/dialogitemmodel.h \
Expand All @@ -42,7 +43,8 @@ HEADERS += src/mainwindow.h \
src/main.h \
src/avatars.h \
src/messages.h \
src/messagelabel.h
src/messagelabel.h \
src/devicehelper.h

FORMS += src/mainwindow.ui \
src/historywindow.ui
Expand Down
7 changes: 5 additions & 2 deletions rc/platforms/symbian.pri
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TARGET.EPOCSTACKSIZE = 0x08000
#TARGET.EPOCALLOWDLLDATA = 1

contains(SYMBIAN_VERSION, Symbian3) {
DEFINES += SYMBIAN3_READY
DEFINES += SYMBIAN3_READY=1
}

#QMAKE_CXXFLAGS.CW += -O2
Expand Down Expand Up @@ -39,7 +39,6 @@ ICON = rc/icons/hicolor/scalable/apps/kutegram.svg

LIBS += -lavkon \
# -laknnotify \
# -lhwrmlightclient \
-lapgrfx \
-lcone \
# -lws32 \
Expand All @@ -58,3 +57,7 @@ LIBS += -lavkon \
# -lcntmodel \
# -lbafl \
# -lmgfetch

contains(SYMBIAN_VERSION, Symbian3) {
LIBS += -lhwrmlightclient
}
47 changes: 26 additions & 21 deletions rc/translations/kutegram_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/historywindow.ui" line="70"/>
<location filename="../../src/historywindow.ui" line="87"/>
<source>...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/historywindow.cpp" line="38"/>
<location filename="../../src/historywindow.cpp" line="42"/>
<source>Type a message...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/historywindow.cpp" line="47"/>
<location filename="../../src/historywindow.cpp" line="51"/>
<source>Options</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/historywindow.cpp" line="61"/>
<location filename="../../src/historywindow.cpp" line="65"/>
<source>Back</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -34,7 +34,7 @@
<message>
<location filename="../../src/mainwindow.ui" line="17"/>
<location filename="../../src/mainwindow.ui" line="66"/>
<location filename="../../src/mainwindow.cpp" line="114"/>
<location filename="../../src/mainwindow.cpp" line="118"/>
<source>Kutegram</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -53,18 +53,18 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="258"/>
<location filename="../../src/mainwindow.ui" line="261"/>
<source>Actions</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="269"/>
<location filename="../../src/mainwindow.ui" line="272"/>
<source>Help</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="102"/>
<location filename="../../src/mainwindow.ui" line="279"/>
<location filename="../../src/mainwindow.ui" line="282"/>
<source>Log in</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -89,22 +89,22 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="284"/>
<location filename="../../src/mainwindow.ui" line="287"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="292"/>
<location filename="../../src/mainwindow.ui" line="295"/>
<source>Log out</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="297"/>
<location filename="../../src/mainwindow.ui" line="300"/>
<source>About Kutegram</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="305"/>
<location filename="../../src/mainwindow.ui" line="308"/>
<source>About Qt</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -129,7 +129,12 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="115"/>
<location filename="../../src/mainwindow.cpp" line="72"/>
<source>All chats</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="119"/>
<source>Kutegram by curoviyxru
An unofficial Qt-based client for Telegram messenger.
Project&apos;s website: http://kg.curoviyx.ru
Expand All @@ -138,30 +143,30 @@ Telegram chat: https://t.me/kutegramchat</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="150"/>
<location filename="../../src/mainwindow.cpp" line="160"/>
<location filename="../../src/mainwindow.cpp" line="170"/>
<location filename="../../src/mainwindow.cpp" line="186"/>
<location filename="../../src/mainwindow.cpp" line="154"/>
<location filename="../../src/mainwindow.cpp" line="164"/>
<location filename="../../src/mainwindow.cpp" line="174"/>
<location filename="../../src/mainwindow.cpp" line="190"/>
<source>Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="151"/>
<location filename="../../src/mainwindow.cpp" line="155"/>
<source>Got socket error: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="161"/>
<location filename="../../src/mainwindow.cpp" line="165"/>
<source>Got MT error: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="171"/>
<location filename="../../src/mainwindow.cpp" line="175"/>
<source>Got DH error: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="187"/>
<location filename="../../src/mainwindow.cpp" line="191"/>
<source>Got RPC error: %1, %2, %3</source>
<translation type="unfinished"></translation>
</message>
Expand Down
47 changes: 26 additions & 21 deletions rc/translations/kutegram_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
<translation></translation>
</message>
<message>
<location filename="../../src/historywindow.ui" line="70"/>
<location filename="../../src/historywindow.ui" line="87"/>
<source>...</source>
<translation></translation>
</message>
<message>
<location filename="../../src/historywindow.cpp" line="38"/>
<location filename="../../src/historywindow.cpp" line="42"/>
<source>Type a message...</source>
<translation>Escribir mensaje:</translation>
</message>
<message>
<location filename="../../src/historywindow.cpp" line="47"/>
<location filename="../../src/historywindow.cpp" line="51"/>
<source>Options</source>
<translation>Opciones</translation>
</message>
<message>
<location filename="../../src/historywindow.cpp" line="61"/>
<location filename="../../src/historywindow.cpp" line="65"/>
<source>Back</source>
<translation>Atrás</translation>
</message>
Expand All @@ -34,7 +34,7 @@
<message>
<location filename="../../src/mainwindow.ui" line="17"/>
<location filename="../../src/mainwindow.ui" line="66"/>
<location filename="../../src/mainwindow.cpp" line="114"/>
<location filename="../../src/mainwindow.cpp" line="118"/>
<source>Kutegram</source>
<translation></translation>
</message>
Expand All @@ -57,18 +57,18 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;kutegram://change-phone&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Cambiar núm. de teléfono...&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="258"/>
<location filename="../../src/mainwindow.ui" line="261"/>
<source>Actions</source>
<translation>Mi cuenta</translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="269"/>
<location filename="../../src/mainwindow.ui" line="272"/>
<source>Help</source>
<translation>Ayuda</translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="102"/>
<location filename="../../src/mainwindow.ui" line="279"/>
<location filename="../../src/mainwindow.ui" line="282"/>
<source>Log in</source>
<translation>Iniciar sesión</translation>
</message>
Expand All @@ -93,22 +93,22 @@ p, li { white-space: pre-wrap; }
<translation>Aceptar</translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="284"/>
<location filename="../../src/mainwindow.ui" line="287"/>
<source>Quit</source>
<translation>Cerrar</translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="292"/>
<location filename="../../src/mainwindow.ui" line="295"/>
<source>Log out</source>
<translation>Finalizar sesión</translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="297"/>
<location filename="../../src/mainwindow.ui" line="300"/>
<source>About Kutegram</source>
<translation>Acerca de Kutegram</translation>
</message>
<message>
<location filename="../../src/mainwindow.ui" line="305"/>
<location filename="../../src/mainwindow.ui" line="308"/>
<source>About Qt</source>
<translation>Acerca de Qt</translation>
</message>
Expand All @@ -133,7 +133,12 @@ p, li { white-space: pre-wrap; }
<translation>Salir</translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="115"/>
<location filename="../../src/mainwindow.cpp" line="72"/>
<source>All chats</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="119"/>
<source>Kutegram by curoviyxru
An unofficial Qt-based client for Telegram messenger.
Project&apos;s website: http://kg.curoviyx.ru
Expand All @@ -146,30 +151,30 @@ Canal de Telegram: https://t.me/kutegram
Chat de Telegram: https://t.me/kutegramchat</translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="150"/>
<location filename="../../src/mainwindow.cpp" line="160"/>
<location filename="../../src/mainwindow.cpp" line="170"/>
<location filename="../../src/mainwindow.cpp" line="186"/>
<location filename="../../src/mainwindow.cpp" line="154"/>
<location filename="../../src/mainwindow.cpp" line="164"/>
<location filename="../../src/mainwindow.cpp" line="174"/>
<location filename="../../src/mainwindow.cpp" line="190"/>
<source>Error</source>
<translation>Error</translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="151"/>
<location filename="../../src/mainwindow.cpp" line="155"/>
<source>Got socket error: %1</source>
<translation>Error de conexión: %1</translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="161"/>
<location filename="../../src/mainwindow.cpp" line="165"/>
<source>Got MT error: %1</source>
<translation>Error de MT: %1</translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="171"/>
<location filename="../../src/mainwindow.cpp" line="175"/>
<source>Got DH error: %1</source>
<translation>Error DH: %1</translation>
</message>
<message>
<location filename="../../src/mainwindow.cpp" line="187"/>
<location filename="../../src/mainwindow.cpp" line="191"/>
<source>Got RPC error: %1, %2, %3</source>
<translation>Error de RPC: %1, %2, %3</translation>
</message>
Expand Down
Loading

0 comments on commit acfde15

Please sign in to comment.