3. Introduction Test and develop your own plug-ins! The best ones developed in Codebits are going to be available in SAPO’s community, in our new and upcoming site. The SAPO Messenger Apps: XMPP based Delphi (windows client) Javascript (web client) Our team: Luis Troni Jorge Cruz Carlos Oliveira
4. XMPP Basics – Stands for ... eXtensible Messaging and Presence Protocol: Real time messaging system XML based Decentralized Secure Flexible Open standards Useful link: http://xmpp.org/
5.
6.
7. XMPP Basics – Stanzas types <message/> - the conversation itself <presence/> - it is the way you define your status on the web, there are several types of presences, ex: online, away,... <iq/> - Information Queries, the way you change stuff
8. How to use the API (I) Create Plugins folder inside app folder:
9. How to use the API (II) Must have plugin.ini with required data
10. How to use the API (III) plugin.ini example [plugin] [plugin] entrypoint= Main language= VBScript [description] Name= Hello World! Description= your friendly hello world test! Author = SAPO Version= 1.0.0.0 [components] File1=Test01.vbs Name of the entry function Language of the plug-in File(s) that contains the source code
11. How to use the API (IV) Plugins will be loaded on main window, as defined in plugin.ini
12. How to use the API (V) The Windows Script Host API: Roster_OnPresenceChange (int Presence Value) Roster_OnMoodChange (int Mood Value) Roster_OnStatusChange (strStatusPhrase Value) Roster_OnPresenceReceived (str JID Value,int Presence value) Roster_OnDisconnect
13. What can you do? - Example Code The “hello world” example
14. What can you do? – Other ideas Real-time Social Networking Insert RSS notifications React to XMPP events (ex: change status) <Insert your idea here/>