libpurple/purpleattachment.c

changeset 42406
15d400ce4285
parent 41960
c8a4853205e3
child 42576
ab1ca778ddb2
equal deleted inserted replaced
42405:78c08edcbac7 42406:15d400ce4285
143 143
144 obj_class->get_property = purple_attachment_get_property; 144 obj_class->get_property = purple_attachment_get_property;
145 obj_class->set_property = purple_attachment_set_property; 145 obj_class->set_property = purple_attachment_set_property;
146 obj_class->finalize = purple_attachment_finalize; 146 obj_class->finalize = purple_attachment_finalize;
147 147
148 /* add our properties */ 148 /**
149 * PurpleAttachment:id:
150 *
151 * The identifier of this attachment.
152 *
153 * Since: 3.0.0
154 */
149 properties[PROP_ID] = g_param_spec_uint64( 155 properties[PROP_ID] = g_param_spec_uint64(
150 "id", "id", "The identifier of the attachment", 156 "id", "id",
157 "The identifier of the attachment.",
151 0, G_MAXUINT64, 0, 158 0, G_MAXUINT64, 0,
152 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS 159 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
153 ); 160
154 161 /**
162 * PurpleAttachment:content-type:
163 *
164 * The content type of this attachment. This should be a commonly used
165 * mime type.
166 *
167 * Since: 3.0.0
168 */
155 properties[PROP_CONTENT_TYPE] = g_param_spec_string( 169 properties[PROP_CONTENT_TYPE] = g_param_spec_string(
156 "content-type", "content-type", "The content type of the attachment", 170 "content-type", "content-type",
171 "The content type of the attachment.",
157 "application/octet-stream", 172 "application/octet-stream",
158 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS 173 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
159 ); 174
160 175 /**
176 * PurpleAttachment:local-uri:
177 *
178 * The local URI of the attachment. That is where the file can be found on
179 * disk.
180 *
181 * Since: 3.0.0
182 */
161 properties[PROP_LOCAL_URI] = g_param_spec_string( 183 properties[PROP_LOCAL_URI] = g_param_spec_string(
162 "local-uri", "local-uri", "The local URI of the attachment", 184 "local-uri", "local-uri",
185 "The local URI of the attachment.",
163 NULL, 186 NULL,
164 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS 187 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
165 ); 188
166 189 /**
190 * PurpleAttachment:remote-uri:
191 *
192 * The remote URI of the attachment. In most cases this is just a base
193 * filename.
194 *
195 * Since: 3.0.0
196 */
167 properties[PROP_REMOTE_URI] = g_param_spec_string( 197 properties[PROP_REMOTE_URI] = g_param_spec_string(
168 "remote-uri", "remote-uri", "The remote URI of the attachment", 198 "remote-uri", "remote-uri",
199 "The remote URI of the attachment.",
169 NULL, 200 NULL,
170 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS 201 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
171 ); 202
172 203 /**
204 * PurpleAttachment:size:
205 *
206 * The size of the attachment in bytes.
207 *
208 * Since: 3.0.0
209 */
173 properties[PROP_SIZE] = g_param_spec_uint64( 210 properties[PROP_SIZE] = g_param_spec_uint64(
174 "size", "size", "The file size of the attachment in bytes", 211 "size", "size",
212 "The file size of the attachment in bytes.",
175 0, G_MAXUINT64, 0, 213 0, G_MAXUINT64, 0,
176 G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS 214 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
177 );
178 215
179 g_object_class_install_properties(obj_class, N_PROPERTIES, properties); 216 g_object_class_install_properties(obj_class, N_PROPERTIES, properties);
180 } 217 }
181 218
182 /****************************************************************************** 219 /******************************************************************************

mercurial