Sun, 25 Apr 2004 22:02:06 +0000
[gaim-migrate @ 9570]
A massive patch by shx to reorganize MSN some more and add command
processor support. This allows us to do cool things like produce more
detailed error messages. For example, the Invalid Username dialog now
shows the username of the invalid user.
I modified the aforementioned dialog so it'll look a little nicer looking,
and also mention the account this happened on. It also removes the user
from your blist, as there's no point to keeping the user on there.
committer: Christian Hammond <chipx86@chipx86.com>
| 5370 | 1 | /** |
| 2 | * @file page.h Paging functions | |
| 3 | * | |
| 4 | * gaim | |
| 5 | * | |
|
8475
3b5687726055
[gaim-migrate @ 9208]
Christian Hammond <chipx86@chipx86.com>
parents:
6701
diff
changeset
|
6 | * Copyright (C) 2003-2004 Christian Hammond <chipx86@gnupdate.org> |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5370
diff
changeset
|
7 | * |
| 5370 | 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | */ | |
| 22 | #ifndef _MSN_PAGE_H_ | |
| 23 | #define _MSN_PAGE_H_ | |
| 24 | ||
| 25 | typedef struct _MsnPage MsnPage; | |
| 26 | ||
| 27 | #include "session.h" | |
| 28 | #include "user.h" | |
| 29 | ||
| 30 | /** | |
| 31 | * A page. | |
| 32 | */ | |
| 33 | struct _MsnPage | |
| 34 | { | |
| 35 | char *from_location; | |
| 36 | char *from_phone; | |
| 37 | ||
| 38 | size_t size; | |
| 39 | ||
| 40 | char *body; | |
| 41 | }; | |
| 42 | ||
| 43 | /** | |
| 44 | * Creates a new, empty page. | |
| 45 | * | |
| 46 | * @return A new page. | |
| 47 | */ | |
| 48 | MsnPage *msn_page_new(void); | |
| 49 | ||
| 50 | /** | |
| 51 | * Destroys a page. | |
| 52 | */ | |
| 53 | void msn_page_destroy(MsnPage *page); | |
| 54 | ||
| 55 | /** | |
|
8808
1cb5ddf6b625
[gaim-migrate @ 9570]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8646
diff
changeset
|
56 | * Generates the payload data of a page. |
| 5370 | 57 | * |
|
8646
74d0e7406e3b
[gaim-migrate @ 9398]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8475
diff
changeset
|
58 | * @param page The page. |
|
74d0e7406e3b
[gaim-migrate @ 9398]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8475
diff
changeset
|
59 | * @param ret_size The returned size of the payload. |
| 5370 | 60 | * |
|
8808
1cb5ddf6b625
[gaim-migrate @ 9570]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8646
diff
changeset
|
61 | * @return The payload data of a page. |
| 5370 | 62 | */ |
|
8646
74d0e7406e3b
[gaim-migrate @ 9398]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8475
diff
changeset
|
63 | char *msn_page_gen_payload(const MsnPage *page, size_t *ret_size); |
| 5370 | 64 | |
| 65 | /** | |
| 66 | * Sets the body of a page. | |
| 67 | * | |
| 68 | * @param page The page. | |
| 69 | * @param body The body of the page. | |
| 70 | */ | |
| 71 | void msn_page_set_body(MsnPage *page, const char *body); | |
| 72 | ||
| 73 | /** | |
| 74 | * Returns the body of the page. | |
| 75 | * | |
| 76 | * @param page The page. | |
| 77 | * | |
| 78 | * @return The body of the page. | |
| 79 | */ | |
| 80 | const char *msn_page_get_body(const MsnPage *page); | |
| 81 | ||
| 82 | #endif /* _MSN_PAGE_H_ */ |