gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] Additional programs and language bindings branch, master, updated.


From: Daniele Forsi
Subject: [SCM] Additional programs and language bindings branch, master, updated. 07838dfa60fb8e0407a79000f40f7f041b2f8e67
Date: Tue, 15 Dec 2009 20:23:38 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Additional programs and language bindings".

The branch, master has been updated
       via  07838dfa60fb8e0407a79000f40f7f041b2f8e67 (commit)
      from  bf971c8bfa3cd17f01e3fa7445d01b56bf7001e7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii/gnokii-extras.git/commit/?id=07838dfa60fb8e0407a79000f40f7f041b2f8e67


commit 07838dfa60fb8e0407a79000f40f7f041b2f8e67
Author: Daniele Forsi <address@hidden>
Date:   Tue Dec 15 12:40:39 2009 +0100

    Add missing readme for events and fix usage and description

diff --git a/snippets/ChangeLog b/snippets/ChangeLog
index feeb922..398decb 100644
--- a/snippets/ChangeLog
+++ b/snippets/ChangeLog
@@ -2,6 +2,9 @@
  * other/
     o add missing press_key.readme, clarify usage string in press_key.c and
       check for bad arguments                                (Daniele Forsi)
+ * misc/
+    o add missing events.readme, fix usage and description in heading of
+      events.c                                               (Daniele Forsi)
 
 2009/11/02
  * misc/memory_names
diff --git a/snippets/misc/events.c b/snippets/misc/events.c
index 6dd43ce..2456724 100644
--- a/snippets/misc/events.c
+++ b/snippets/misc/events.c
@@ -24,16 +24,13 @@
 
   Copyright (C) 2006 by Daniele Forsi
 
-  Read the first vCalendar entry of each file and import it either as
-  a Calendar Note or as a ToDo Note.
+  Prints as vCalendar VEVENTs the call-related events stored in the phone.
 
   compile with
   gcc -Wall -o events events.c `pkg-config --libs gnokii`
 
   usage:
-  events --calendar vcalendarfile1 vcalendarfile2 .. vcalendarfileN
-  or:
-  events --todo vcalendarfile1 vcalendarfile2 .. vcalendarfileN
+  events --all
 
 */
 
@@ -78,7 +75,7 @@ void signal_handler(int signal) {
 
 void usage(char *progname) {
        fprintf(stderr, _("Usage: %s --all [--no-dialled-calls] 
[--no-missed-calls] [--no-received-calls]\n"), progname);
-       fprintf(stderr, _("Usage: %s [--dialled-calls] [--missed-calls] 
[--received-calls]\n"), progname);
+       fprintf(stderr, _("   or: %s [--dialled-calls] [--missed-calls] 
[--received-calls]\n"), progname);
        fprintf(stderr, _("Purpose: write to stdout as vCalendar VEVENTs the 
events stored in the phone\n"));
        fprintf(stderr, _("\t--all\t\t - write all the following\n"));
        fprintf(stderr, _("\t--dialled-calls\t - calls in DC memory\n"));
diff --git a/snippets/misc/events.readme b/snippets/misc/events.readme
new file mode 100644
index 0000000..7cfabd1
--- /dev/null
+++ b/snippets/misc/events.readme
@@ -0,0 +1,18 @@
+Prints the call-related events stored in the phone to stdout as vCalendar
+VEVENTs suitable to be imported in a calendaring application.
+
+Available options (order is important):
+ --all - prints all events unless one or more of the "no"
+         options are used later
+ --[no-]dialled-calls  - toggles printing dialled calls
+ --[no-]missed-calls   - toggles printing missed calls
+ --[no-]received-calls - toggles printing received calls
+
+Usage:
+$ events --missed-calls
+prints the phone calls received by your phone and that you didn't answer
+
+$ events --all --no-missed-calls
+or
+$ events --dialled-calls --received-calls
+prints the phone calls you made and received

-----------------------------------------------------------------------

Summary of changes:
 snippets/ChangeLog          |    3 +++
 snippets/misc/events.c      |    9 +++------
 snippets/misc/events.readme |   18 ++++++++++++++++++
 3 files changed, 24 insertions(+), 6 deletions(-)
 create mode 100644 snippets/misc/events.readme


hooks/post-receive
-- 
Additional programs and language bindings




reply via email to

[Prev in Thread] Current Thread [Next in Thread]