I can only agree, SMS notification should be a plugin of the notifcation
app and not be coded in the calendar.
Ralf
jaytraxx schrieb:
Hi Aleksander,
the functionality you think of should be implemented as plugin for the new
notifications-app and not in calendar itself !
I already wrote two additional plugins for notifications (e-mail and
winpopup) and made notifications able to handle subjects and attachments.
Also, I made notifications-app ready to handle the type of notification the
user would like to have (e.g. egwpopup first, if that fails send an email,
and so on …) I already sent that to conny and he agreed that I can commit
that to trunk (Ralf, I will contact you before I do that to speak about it).
Since now, I could not find any time to do that, but the code is here and we
run it on our production server. It works good.
So, if this code is in trunk, all you have to do is to write another plugin
-> SMS for notifications-app.
The good thing with notifications-app is the centralized setting for all
notifications (for the user) and the centralized handling of notifications
in the code (we can drop a bit code then, all you need to do is to feed the
notification object with some information).
Good idea?
Bye
Christian
Aleksander Adamowski-3 wrote:
Hi!
I’m preparing to implement a new functionality of alternate calendar alarm
types for eGW Calendar.
Currently it would cover SMS alarms, which would provide a nice
substitution
for SyncML support for mobile devices, which currently doesn’t work with
many devices and configurations. It would also be useful for users of
simpler phones, which aren’t smartphones or don’t support SyncML.
I’m trying to figure out what would be the best architecture for this and
which subsystems would need changes.
Here is the intended functionality from user perspective:
- When configuring alarms for an event, the user can choose either
the “email” alarm type (that behaves like the current one) or “sms” (in
the
future it should be possible to extend eGW to add new types, e.g.
winpopup).
- When the alarm is launched by asyncservices, it should find the
mobile number for all the accounts in the addressbook (either SQL or
LDAP -
preferably without any knowledge about actual configured addressbook
settings with respect to SQL/LDAP storage of accounts data) and launch
a
configured system utility to send SMS messages to them.
- Configuration could have a form of a customisable PHP function in
e.g. header.inc.php that accepts the mobile number and notification
text as an argument and takes care of filtering data and launching
proper
system tools to deliver the SMS
- A user should be able to set a default alarm for new events in the
calendar preferences, so that he/she doesn’t have to set up alarms for
all
new created events, so e.g. he/she always is notified by SMS, unless
he/she manually deletes the alarm when creating a new event
From my current analysis it seems that I’d have to alter at least the
following classes:
calendar/inc/hook_preferences.inc.php
calendar/inc/class.socal.inc.php
phpgwapi/inc/class.asyncservice.inc.php
phpgwapi/cron/asyncservices.php
What do You think about general idea?
Do you have any advice how to start the implementation?
–
Best Regards,
Aleksander Adamowski
http://olo.org.pl
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
eGroupWare Training & Support ==> http://www.egroupware-support.de
Outdoor Unlimited Training GmbH [www.outdoor-training.de]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 (0)631 31657-0
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers