Giter Site home page Giter Site logo

loulou007 / 4d-plugin-calendar-watch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from miyako/4d-plugin-calendar-watch

0.0 0.0 0.0 1.52 MB

Return event IDs of modified calendar item by monitoring the sqlite directory used by Calendar.app.

License: MIT License

C++ 25.22% C 66.18% Objective-C 7.74% HTML 0.86%

4d-plugin-calendar-watch's Introduction

version platform license downloads

4d-plugin-calendar-watch

Return event IDs of modified calendar item by monitoring the sqlite directory used by Calendar.app.

Syntax

Calendar GET LIST (ids;paths;titles;types;watchings)
Parameter Type Description
ids ARRAY TEXT UUID of a calendar
paths ARRAY TEXT Full path of the folder that contains the .ics files
titles ARRAY TEXT Title
types ARRAY INT32 1: caldav (e.g. iCloud), 5: Exchange
watchings ARRAY INT32 ! If the calendar path is watched by the plugin
Calendar ADD TO WATCH (path;method)
Parameter Type Description
path TEXT Full path of the folder that contains the .ics files
method TEXT Callback method name
Calendar REMOVE FROM WATCH (path)
Parameter Type Description
path TEXT Full path of the folder that contains the .ics files

##Examples

  //internally the plugin is not calling EventKit or CalendarStore.
  //it is using sqlite3 APIs to query the database at ~Library/Calendar

ARRAY TEXT($uids;0)  //the UUID of a calendar
ARRAY TEXT($paths;0)  //the full path of the folder that contains the .ics files
ARRAY TEXT($titles;0)  //the title
ARRAY LONGINT($types;0)  //1:caldav (e.g.iCloud), 5:exchange
ARRAY LONGINT($watchings;0)  //if the calendar path is watched by the plugin

Calendar GET LIST ($uids;$paths;$titles;$types;$watchings)

For ($i;1;Size of array($paths))
Calendar ADD TO WATCH ($paths{$i};"CALLBACK")
End for 

CALLBACK

C_TEXT($1;$event)
C_LONGINT($2;$type)

$event:=$1
$type:=$2

Case of 
: ($type=Calendar Event Create)

: ($type=Calendar Event Update)

: ($type=Calendar Event Delete)

End case 

TRACE

4d-plugin-calendar-watch's People

Contributors

miyako avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.