How eionrobb/purple-teams works
Main Components
a. Core Plugin Components (Central):
• Teams Connection Handler (teams_connection.c/h)
• Authentication Module (teams_login.c/h)
• Message Processing (teams_messages.c/h)
• Contact Management (teams_contacts.c/h)
• Teams Router (teams_trouter.c/h)
• Cards Handler (teams_cards.c/h)
b. Integration Layers:
• Purple/Pidgin Integration Layer (purplecompat.h)
• WebSocket Handler (purple-websocket.c/h)
• Purple 2.x Compatibility Layer (purple2compat directory)
c. External Systems:
• Microsoft Teams Services
• Pidgin Client
• Browser (for authentication)
• Microsoft | | Plugin | | Pidgin |
• Teams |<--->| Components |<--->| Client |
• Services | | | | |
Key Relationships
• Authentication flow from Plugin → Browser → Teams Services
• Message flow: Teams Services → Message Processing → Pidgin Client
• Contact sync: Teams Services → Contact Management → Pidgin Client
Technical Details
• JSON processing (indicated by libjson-glib dependency)
• WebSocket communication channels
• Contact caching mechanism
• Message format conversion between Teams and Pidgin
Implementation Notes
• Keep the main plugin components in the center
• Related functionality (e.g., all contact-related components together)
• Clear boundaries between the plugin and external systems
• Error handling and retry mechanisms
Data transformation between Teams and Pidgin formats
This design should reflect the plugin's lightweight nature (as mentioned in the README's pros section about using less RAM) while showing all the essential components that enable it to function as a full-featured Teams client within Pidgin.