listhelper-moderate
[Top][All Lists]
Advanced

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

gnokii-users post from address@hidden requires approval


From: gnokii-users-owner
Subject: gnokii-users post from address@hidden requires approval
Date: Mon, 09 Jul 2007 00:33:29 -0400

As list administrator, your authorization is requested for the
following mailing list posting:

    List:    address@hidden
    From:    address@hidden
    Subject: [PATCH] Support termination of repeating events
    Reason:  Post by non-member to a members-only list

At your convenience, visit:

    http://lists.nongnu.org/mailman/admindb/gnokii-users
        
to approve or deny the request.
--- Begin Message --- Subject: [PATCH] Support termination of repeating events Date: Sun, 8 Jul 2007 21:32:58 -0700
---
 common/phones/nk6510.c  |    9 +++++++++
 include/gnokii/common.h |    1 +
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index aba8a7f..6259dd5 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -2696,6 +2696,8 @@ static gn_error calnote2_decode(unsigned char *message, 
int length, gn_data *dat
        data->calnote->end_time.second = 0;
        /* Recurrence */
        data->calnote->recurrence = 256 * message[40] + message[41];
+       /* Occurrence */
+       data->calnote->occurrences = 256 * message[46] + message[47];
        /* Alarm */
        alarm_mark = 256 * message[14] + message[15];
        alarm = 256 * message[16] + message[17];
@@ -3055,6 +3057,13 @@ static gn_error NK6510_WriteCalendarNote2(gn_data *data, 
struct gn_statemachine
        req[40] = calnote->recurrence / 256;
        req[41] = calnote->recurrence % 256;
 
+       /* Occurrences */
+       if (calnote->recurrence)
+       {
+               req[46] = calnote->occurrences / 256;
+               req[47] = calnote->occurrences % 256;
+       }
+
        /* Set start time and end time */
        req[28] = calnote->time.year / 256;
        req[29] = calnote->time.year % 256;
diff --git a/include/gnokii/common.h b/include/gnokii/common.h
index dfa4872..06843b9 100644
--- a/include/gnokii/common.h
+++ b/include/gnokii/common.h
@@ -377,6 +377,7 @@ typedef struct {
        char phone_number[GN_CALNOTE_NUMBER_MAX_LENGTH]; /* For Call only: the 
phone number */
        char mlocation[GN_CALNOTE_MAX_LENGTH];           /* For Meeting only: 
the location field */
        gn_calnote_recurrence recurrence;                /* Recurrence of the 
note */
+       int occurrences;                                 /* number of events, 0 
for infinite */
 } gn_calnote;
 
 /* List of Calendar Notes in phone */
-- 
1.5.2.2




--- End Message ---
--- Begin Message --- Subject: confirm dc68daca5a623496f9fdfd73a9b8f854f296dea8
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message.  Do this if the message is
spam.  If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list.  The Approved: header can also appear in the first line
of the body of the reply.

--- End Message ---

reply via email to

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