Skip to content

Commit

Permalink
Версия 0.6.8-1
Browse files Browse the repository at this point in the history
- чаты с отключенными через сайт или официальное приложение уведомлениями больше не присылают уведомление и в Кат. Однако, только если эти чаты прогрузились и есть в списке чатов;
- добавлена поддержка отображения музыкальных плейлистов в сообщениях;
- теперь на 5й версии Авроры ОС пакет тоже ставится (после долгой борьбы с кривым валидатором);
- уведомления теперь должны иметь иконку и название и не схлопываться в одно, как было раньше из-за глупой недоработки;
- теперь у проигрываемых треков отображается название и исполнитель на экране блокировки.
  • Loading branch information
Computershik73 committed Apr 6, 2024
1 parent f300d57 commit 951c3f3
Show file tree
Hide file tree
Showing 29 changed files with 356 additions and 289 deletions.
13 changes: 0 additions & 13 deletions harbour-kat.desktop

This file was deleted.

104 changes: 0 additions & 104 deletions harbour-kat.pro

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
116 changes: 59 additions & 57 deletions qml/harbour-kat.qml → qml/aurorakat.qml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ ApplicationWindow

Notification {
id: commonNotification
category: "harbour-kat"
appIcon: "ru.ilyavysotsky.aurorakat"
category: "AuroraKat"
appName: "AuroraKat"
urgency: Notification.Critical
//replacesId: 0
remoteActions: [
{ "name": "default",
"service": "ru.ilyavysotsky.aurorakat",
Expand Down Expand Up @@ -102,8 +106,8 @@ ApplicationWindow
canGoPrevious: true
canPause: true
canPlay: true
canSeek: false

canSeek: true
desktopEntry: "AuroraKat"

playbackStatus: player.isPlaying ? Mpris.Playing : Mpris.Paused

Expand All @@ -115,21 +119,33 @@ ApplicationWindow
mprisPlayer.setMetadata(metadata)*/
// }

onArtistChanged: {
var metadata = mprisPlayer.metadata
// onArtistChanged: {
/*var metadata = mprisPlayer.metadata
metadata[Mpris.metadataToString(Mpris.Artist)] = [artist] // List of strings
console.log(artist)
mprisPlayer.metadata = metadata
}
metadata['xesam:artist'] = [artist] // List of strings
onSongChanged: {
var metadata = mprisPlayer.metadata
mprisPlayer.metadata = metadata*/

metadata[Mpris.metadataToString(Mpris.Title)] = song // String
// mprisPlayer.artist = artist
//}

mprisPlayer.metadata = metadata
}
// onSongChanged: {
/* var metadata = mprisPlayer.metadata
metaData.title = track.title*/
/*var metadata = mprisPlayer.metadata
console.log(song)
metadata['xesam:title'] = song // String
mprisPlayer.metadata = metadata*/

// console.log(mprisPlayer.song)

//mprisPlayer.song = song
//}

onPauseRequested: {
player.pause()
Expand Down Expand Up @@ -161,12 +177,15 @@ ApplicationWindow
Connections {
target: vksdk
onGotNewMessage: {
commonNotification.close()
//commonNotification.close()
commonNotification.replacesId = 0
commonNotification.summary = name
commonNotification.previewSummary = name
commonNotification.body = preview
commonNotification.previewBody = preview

commonNotification.appIcon = "ru.ilyavysotsky.aurorakat"
commonNotification.appName = "AuroraKat"
commonNotification.urgency = Notification.Critical
commonNotification.category = "x-nemo.messaging.im"

commonNotification.publish()
Expand All @@ -182,63 +201,46 @@ ApplicationWindow
}

Connections {
target: netcfgmgr
onConfigurationChanged: {
console.log("onConfigurationChanged")
//vksdk.longPoll.getLongPollServer()
}
target: netcfgmgr
onConfigurationChanged: {
console.log("onConfigurationChanged")
//vksdk.longPoll.getLongPollServer()
}
}

DBusAdaptor {
id: dbus
DBusAdaptor {
id: dbus

service: "ru.ilyavysotsky.aurorakat"
iface: "ru.ilyavysotsky.aurorakat"
path: "/ru/ilyavysotsky/aurorakat"
service: "ru.ilyavysotsky.aurorakat"
iface: "ru.ilyavysotsky.aurorakat"
path: "/ru/ilyavysotsky/aurorakat"

xml: ' <interface name="ru.ilyavysotsky.aurorakat">\n' +
' <method name="activateApp" />\n' +
' </interface>\n'
xml: ' <interface name="ru.ilyavysotsky.aurorakat">\n' +
' <method name="activateApp" />\n' +
' </interface>\n'

function activateApp()
{
if ( !application.applicationActive ) {
application.activate()
}
function activateApp()
{
if ( !application.applicationActive ) {
application.activate()
}
}
}


Connections {
target: player
onMediaChanged: {
//qDebug() << "mediachanged"

mprisPlayer.song = player.title
mprisPlayer.artist = player.author
//var metaData = mprisPlayer.metaData
//metaData['mpris:title'] = "test"
//metaData['mpris:albumArtist'] = "test"
//metaData[Mpris.metadataToString(Mpris.albumArtist)] = "test"
//metaData[Mpris.metadataToString(Mpris.Title)] = "test"
//mprisPlayer.metaData = metaData
//metaData['xesam:title'] = "test"
// metaData['xesam:albumArtist'] = "test"
//mprisPlayer.setMetadata(metaData)
var metaData = mprisPlayer.metadata
// console.log(metaData)
//console.log(player.title)

mprisPlayer.metaData.title = player.title
mprisPlayer.metaData.contributingArtist = player.author

}

/* onStateChanged: {
// qDebug() << "statechanged"
var metaData = mprisPlayer.metaData
// metaData['mpris:title'] = "app.streamMetaText1"
// metaData['mpris:albumArtist'] = "app.stationName"
//metadata[Mpris.metadataToString(Mpris.albumArtist)] = player.author
//metadata[Mpris.metadataToString(Mpris.Title)] = player.title
metaData[Mpris.metadataToString(Mpris.albumArtist)] = "test"
metaData[Mpris.metadataToString(Mpris.Title)] = "test"
mprisPlayer.setMetadata(metaData)
}*/

}


Expand Down
4 changes: 2 additions & 2 deletions qml/pages/AboutPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Page {

PageHeader {
id: header
title: qsTr("About") + "AuroraKat"
title: qsTr("About") + " AuroraKat"
}

Column {
Expand All @@ -53,7 +53,7 @@ Page {
Label {
width: parent.width
horizontalAlignment: Text.AlignHCenter
text: "v0.6.7"
text: "v0.6.8"
}

Label {
Expand Down
2 changes: 1 addition & 1 deletion qml/pages/LoginPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Page {

Notification {
id: loginNotification
category: "harbour-kat"
category: "aurorakat"
}

Label {
Expand Down
76 changes: 0 additions & 76 deletions rpm/harbour-kat.spec

This file was deleted.

Loading

0 comments on commit 951c3f3

Please sign in to comment.