guido+pui@0: /* guido+pui@0: * Copyright (C) 2018 Guido Berhoerster guido+pui@0: * guido+pui@0: * Permission is hereby granted, free of charge, to any person obtaining guido+pui@0: * a copy of this software and associated documentation files (the guido+pui@0: * "Software"), to deal in the Software without restriction, including guido+pui@0: * without limitation the rights to use, copy, modify, merge, publish, guido+pui@0: * distribute, sublicense, and/or sell copies of the Software, and to guido+pui@0: * permit persons to whom the Software is furnished to do so, subject to guido+pui@0: * the following conditions: guido+pui@0: * guido+pui@0: * The above copyright notice and this permission notice shall be included guido+pui@0: * in all copies or substantial portions of the Software. guido+pui@0: * guido+pui@0: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, guido+pui@0: * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF guido+pui@0: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. guido+pui@0: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY guido+pui@0: * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, guido+pui@0: * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE guido+pui@0: * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. guido+pui@0: */ guido+pui@0: guido+pui@0: #ifndef PUI_TYPES_H guido+pui@0: #define PUI_TYPES_H guido+pui@0: guido+pui@0: #include guido+pui@0: guido+pui@0: G_BEGIN_DECLS guido+pui@0: guido+pui@0: #define PUI_TYPE_STATE (pui_state_get_type()) guido+pui@0: guido+pui@0: typedef enum { guido+pui@0: PUI_STATE_INITIAL, guido+pui@0: PUI_STATE_UP_TO_DATE, guido+pui@0: PUI_STATE_NORMAL_UPDATES_AVAILABLE, guido+pui@0: PUI_STATE_IMPORTANT_UPDATES_AVAILABLE, guido+pui@0: PUI_STATE_ERROR, guido+pui@0: PUI_STATE_LAST guido+pui@0: } PuiState; guido+pui@0: guido+pui@0: GType pui_state_get_type(void); guido+pui@0: gchar * pui_types_enum_to_string(GType, gint); guido+pui@0: guido+pui@0: G_END_DECLS guido+pui@0: guido+pui@0: #endif /* !PUI_TYPES_H */