libpurple/connection.c

changeset 42656
df9aafbae930
parent 42612
d905313bc732
child 42682
f5559cae9029
equal deleted inserted replaced
42655:db971edd4b59 42656:df9aafbae930
891 obj_class->constructed = purple_connection_constructed; 891 obj_class->constructed = purple_connection_constructed;
892 892
893 klass->connect = purple_connection_default_connect; 893 klass->connect = purple_connection_default_connect;
894 klass->disconnect = purple_connection_default_disconnect; 894 klass->disconnect = purple_connection_default_disconnect;
895 895
896 /**
897 * PurpleConnection:id:
898 *
899 * The unique identifier for the connection.
900 *
901 * Since: 3.0
902 */
896 properties[PROP_ID] = g_param_spec_string( 903 properties[PROP_ID] = g_param_spec_string(
897 "id", "id", 904 "id", "id",
898 "The identifier of the account", 905 "The identifier of the connection",
899 NULL, 906 NULL,
900 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); 907 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
901 908
902 /** 909 /**
903 * PurpleConnection:cancellable: 910 * PurpleConnection:cancellable:
913 "cancellable", "cancellable", 920 "cancellable", "cancellable",
914 "A cancellable for the connection.", 921 "A cancellable for the connection.",
915 G_TYPE_CANCELLABLE, 922 G_TYPE_CANCELLABLE,
916 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); 923 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
917 924
925 /**
926 * PurpleConnection:protocol:
927 *
928 * The protocol that this connection is for.
929 *
930 * Since: 3.0
931 */
918 properties[PROP_PROTOCOL] = g_param_spec_object( 932 properties[PROP_PROTOCOL] = g_param_spec_object(
919 "protocol", "Protocol", 933 "protocol", "Protocol",
920 "The protocol that the connection is using.", 934 "The protocol that the connection is using.",
921 PURPLE_TYPE_PROTOCOL, 935 PURPLE_TYPE_PROTOCOL,
922 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); 936 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
923 937
938 /**
939 * PurpleConnection:flags:
940 *
941 * The flags for this connection.
942 *
943 * Since: 3.0
944 */
924 properties[PROP_FLAGS] = g_param_spec_flags( 945 properties[PROP_FLAGS] = g_param_spec_flags(
925 "flags", "Connection flags", 946 "flags", "Connection flags",
926 "The flags of the connection.", 947 "The flags of the connection.",
927 PURPLE_TYPE_CONNECTION_FLAGS, 0, 948 PURPLE_TYPE_CONNECTION_FLAGS, 0,
928 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); 949 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
929 950
951 /**
952 * PurpleConnection:state:
953 *
954 * The state of the connection.
955 *
956 * Since: 3.0
957 */
930 properties[PROP_STATE] = g_param_spec_enum( 958 properties[PROP_STATE] = g_param_spec_enum(
931 "state", "Connection state", 959 "state", "Connection state",
932 "The current state of the connection.", 960 "The current state of the connection.",
933 PURPLE_TYPE_CONNECTION_STATE, PURPLE_CONNECTION_STATE_DISCONNECTED, 961 PURPLE_TYPE_CONNECTION_STATE, PURPLE_CONNECTION_STATE_DISCONNECTED,
934 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); 962 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
935 963
964 /**
965 * PurpleConnection:account:
966 *
967 * The account this connection belongs to.
968 *
969 * Since: 3.0
970 */
936 properties[PROP_ACCOUNT] = g_param_spec_object( 971 properties[PROP_ACCOUNT] = g_param_spec_object(
937 "account", "Account", 972 "account", "Account",
938 "The account using the connection.", PURPLE_TYPE_ACCOUNT, 973 "The account using the connection.", PURPLE_TYPE_ACCOUNT,
939 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); 974 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
940 975
976 /**
977 * PurpleConnection:password:
978 *
979 * The password for this connection.
980 *
981 * This is only stored for reconnections and may go away in the future.
982 *
983 * Since: 3.0
984 */
941 properties[PROP_PASSWORD] = g_param_spec_string( 985 properties[PROP_PASSWORD] = g_param_spec_string(
942 "password", "Password", 986 "password", "Password",
943 "The password used for connection.", NULL, 987 "The password used for connection.", NULL,
944 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); 988 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
945 989
990 /**
991 * PurpleConnection:display-name:
992 *
993 * The display name for the account.
994 *
995 * Since: 3.0
996 */
946 properties[PROP_DISPLAY_NAME] = g_param_spec_string( 997 properties[PROP_DISPLAY_NAME] = g_param_spec_string(
947 "display-name", "Display name", 998 "display-name", "Display name",
948 "Your name that appears to other people.", NULL, 999 "Your name that appears to other people.", NULL,
949 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); 1000 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
950 1001

mercurial