| 42 |
42 |
| 43 /** @copydoc _PurpleProtocolInterface */ |
43 /** @copydoc _PurpleProtocolInterface */ |
| 44 typedef struct _PurpleProtocolInterface PurpleProtocolInterface; |
44 typedef struct _PurpleProtocolInterface PurpleProtocolInterface; |
| 45 |
45 |
| 46 #include "account.h" |
46 #include "account.h" |
| |
47 #include "accountopt.h" |
| 47 #include "buddylist.h" |
48 #include "buddylist.h" |
| 48 #include "connection.h" |
49 #include "connection.h" |
| 49 #include "conversations.h" |
50 #include "conversations.h" |
| 50 #include "ft.h" |
51 #include "ft.h" |
| |
52 #include "imgstore.h" |
| 51 #include "roomlist.h" |
53 #include "roomlist.h" |
| 52 #include "whiteboard.h" |
54 #include "whiteboard.h" |
| 53 |
55 |
| 54 /** |
56 /** |
| 55 * Represents an instance of a protocol registered with the protocols |
57 * Represents an instance of a protocol registered with the protocols |
| 547 /** TODO |
549 /** TODO |
| 548 * Returns the GType for #PurpleProtocol. |
550 * Returns the GType for #PurpleProtocol. |
| 549 */ |
551 */ |
| 550 GType purple_protocol_get_type(void); |
552 GType purple_protocol_get_type(void); |
| 551 |
553 |
| |
554 /** TODO |
| |
555 * Returns the ID of a protocol. |
| |
556 * |
| |
557 * @param protocol The protocol. |
| |
558 * |
| |
559 * @return The ID of the protocol. |
| |
560 */ |
| |
561 const char *purple_protocol_get_id(const PurpleProtocol *protocol); |
| |
562 |
| |
563 /** TODO |
| |
564 * Returns the translated name of a protocol. |
| |
565 * |
| |
566 * @param protocol The protocol. |
| |
567 * |
| |
568 * @return The translated name of the protocol. |
| |
569 */ |
| |
570 const char *purple_protocol_get_name(const PurpleProtocol *protocol); |
| |
571 |
| |
572 /** TODO |
| |
573 * Returns the options of a protocol. |
| |
574 * |
| |
575 * @param protocol The protocol. |
| |
576 * |
| |
577 * @return The options of the protocol. |
| |
578 */ |
| |
579 PurpleProtocolOptions purple_protocol_get_options(const PurpleProtocol *protocol); |
| |
580 |
| |
581 /** TODO |
| |
582 * Returns the user splits of a protocol. |
| |
583 * |
| |
584 * @param protocol The protocol. |
| |
585 * |
| |
586 * @return The user splits of the protocol. |
| |
587 */ |
| |
588 GList *purple_protocol_get_user_splits(const PurpleProtocol *protocol); |
| |
589 |
| |
590 /** TODO |
| |
591 * Returns the protocol options of a protocol. |
| |
592 * |
| |
593 * @param protocol The protocol. |
| |
594 * |
| |
595 * @return The protocol options of the protocol. |
| |
596 */ |
| |
597 GList *purple_protocol_get_protocol_options(const PurpleProtocol *protocol); |
| |
598 |
| |
599 /** TODO |
| |
600 * Returns the icon spec of a protocol. |
| |
601 * |
| |
602 * @param protocol The protocol. |
| |
603 * |
| |
604 * @return The icon spec of the protocol. |
| |
605 */ |
| |
606 PurpleBuddyIconSpec purple_protocol_get_icon_spec(const PurpleProtocol *protocol); |
| |
607 |
| |
608 /** TODO |
| |
609 * Returns the whiteboard ops of a protocol. |
| |
610 * |
| |
611 * @param protocol The protocol. |
| |
612 * |
| |
613 * @return The whiteboard ops of the protocol. |
| |
614 */ |
| |
615 PurpleWhiteboardPrplOps *purple_protocol_get_whiteboard_ops(const PurpleProtocol *protocol); |
| |
616 |
| 552 /** |
617 /** |
| 553 * Notifies Purple that our account's idle state and time have changed. |
618 * Notifies Purple that our account's idle state and time have changed. |
| 554 * |
619 * |
| 555 * This is meant to be called from protocols. |
620 * This is meant to be called from protocols. |
| 556 * |
621 * |