Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[timedclient] implement MaximalTimeoutSnoozeCounter #2

Merged
merged 1 commit into from Aug 15, 2022

Conversation

teleshoes
Copy link
Contributor

No description provided.

@teleshoes
Copy link
Contributor Author

teleshoes commented Jul 22, 2022

previously, timedclient-qt5 -e 'maximalTimeoutSnoozeCounter=2' would result in
Maemo::Timed::Event::setAttribute
instead of Maemo::Timed::Event::setMaximalTimeoutSnoozeCounter

and thus, there was no way to actually set this value with timedclient

Copy link
Contributor

@pvuorela pvuorela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also list this option with --help?

cc @spiiroin

@@ -1482,6 +1482,10 @@ static void do_add_event(char *args)
{
cur_eve.setTimezone(val);
}
else if( !strcmp(key, "MaximalTimeoutSnoozeCounter") )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should start with lower case like other event args?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 (i was copying the info msg, ill change both)

@teleshoes teleshoes force-pushed the master branch 2 times, most recently from 7ac1b98 to 5c88630 Compare August 11, 2022 14:20
@@ -881,7 +881,7 @@ static void event_emit_details(CONST Maemo::Timed::Event &eve)
{
event_emit_info(eve);

printf(" MaximalTimeoutSnoozeCounter: %d\n",
printf(" maximalTimeoutSnoozeCounter: %d\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this should stay upper case to be consistent with the below items. Being more kind of "pretty printed" details.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@spiiroin spiiroin merged commit f845e4d into sailfishos:master Aug 15, 2022
@spiiroin
Copy link
Contributor

Included in timed >= 3.6.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants