Frameworks/libpurple.framework/Versions/0.6.2/Headers/pecan_status.h
author Zachary West <zacw@adium.im>
Fri Aug 21 13:25:11 2009 -0700 (2009-08-21)
changeset 2592 e8d15275025e
parent 1739 Frameworks/libpurple.framework/Versions/0.6.0/Headers/pecan_status.h@8b0daad9656c
permissions -rw-r--r--
im.pidgin.adium.1-4 at 267c6165e02e34318a1823960bd04c0639952f73
     1 /**
     2  * Copyright (C) 2007-2008 Felipe Contreras
     3  *
     4  * Purple is the legal property of its developers, whose names are too numerous
     5  * to list here.  Please refer to the COPYRIGHT file distributed with this
     6  * source distribution.
     7  *
     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., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
    21  */
    22 
    23 #ifndef PECAN_STATUS_H
    24 #define PECAN_STATUS_H
    25 
    26 /**
    27  * Status types.
    28  */
    29 typedef enum
    30 {
    31     PECAN_STATUS_NONE,
    32     PECAN_STATUS_ONLINE,
    33     PECAN_STATUS_BUSY,
    34     PECAN_STATUS_IDLE,
    35     PECAN_STATUS_BRB,
    36     PECAN_STATUS_AWAY,
    37     PECAN_STATUS_PHONE,
    38     PECAN_STATUS_LUNCH,
    39     PECAN_STATUS_OFFLINE,
    40     PECAN_STATUS_HIDDEN
    41 
    42 } PecanStatusType;
    43 
    44 struct MsnSession;
    45 
    46 /**
    47  * Updates the status of the user.
    48  *
    49  * @param session The MSN session.
    50  */
    51 void pecan_update_status (struct MsnSession *session);
    52 
    53 /**
    54  * Updates the personal message of the user.
    55  *
    56  * @param session The MSN session.
    57  */
    58 void pecan_update_personal_message (struct MsnSession *session);
    59 
    60 #endif /* PECAN_STATUS_H */