list_synchronizer.h

Go to the documentation of this file.
00001 #ifndef LIST_SYNCHRONIZER_CLASS
00002 #define LIST_SYNCHRONIZER_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : list_synchronizer                                                 *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *  Purpose:                                                                   *
00010 *                                                                             *
00011 *    Manages a collection of lists of synchronizable state information.       *
00012 *                                                                             *
00013 *******************************************************************************
00014 * Copyright (c) 2002-$now By Author.  This program is free software; you can  *
00015 * redistribute it and/or modify it under the terms of the GNU General Public  *
00016 * License as published by the Free Software Foundation; either version 2 of   *
00017 * the License or (at your option) any later version.  This is online at:      *
00018 *     http://www.fsf.org/copyleft/gpl.html                                    *
00019 * Please send any updates to: fred@gruntose.com                               *
00020 \*****************************************************************************/
00021 
00022 #include "dll_list_synch.h"
00023 
00024 #include <octopus/octopus.h>
00025 
00026 // forward.
00027 class list_manager;
00028 
00029 class LIST_SYNCHRONIZER_CLASS_STYLE list_synchronizer : public octopus
00030 {
00031 public:
00032   list_synchronizer();
00033   ~list_synchronizer();
00034 
00035   outcome add_list(list_manager *to_add);
00036     // adds a new list synchronization manager "to_add" to the crew of lists.
00037 
00038   outcome zap_list(const string_array &list_name);
00039     // takes a list registered under "list_name" back out of the synchronizer.
00040     // the list_manager for the "list_name" is destroyed on success.
00041 
00042   void clean(int older_than);
00043     // cleans out any items that are older than the "older_than" number of
00044     // milliseconds.
00045 
00046   bool update(const string_array &object_id);
00047     // marks the item specified by the "object_id" as updated.
00048 };
00049 
00050 #endif
00051 

Generated on Fri Nov 28 04:29:15 2008 for HOOPLE Libraries by  doxygen 1.5.1