1 #ifndef LIST_SYNCHRONIZER_CLASS
2 #define LIST_SYNCHRONIZER_CLASS
4 /*****************************************************************************\
6 * Name : list_synchronizer *
7 * Author : Chris Koeritz *
11 * Manages a collection of lists of synchronizable state information. *
13 *******************************************************************************
14 * Copyright (c) 2002-$now By Author. This program is free software; you can *
15 * redistribute it and/or modify it under the terms of the GNU General Public *
16 * License as published by the Free Software Foundation; either version 2 of *
17 * the License or (at your option) any later version. This is online at: *
18 * http://www.fsf.org/copyleft/gpl.html *
19 * Please send any updates to: fred@gruntose.com *
20 \*****************************************************************************/
22 #include <octopus/octopus.h>
24 namespace synchronic {
29 class list_synchronizer : public octopi::octopus
35 basis::outcome add_list(list_manager *to_add);
36 // adds a new list synchronization manager "to_add" to the crew of lists.
38 basis::outcome zap_list(const structures::string_array &list_name);
39 // takes a list registered under "list_name" back out of the synchronizer.
40 // the list_manager for the "list_name" is destroyed on success.
42 void clean(int older_than);
43 // cleans out any items that are older than the "older_than" number of
46 bool update(const structures::string_array &object_id);
47 // marks the item specified by the "object_id" as updated.