Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

recentAlbums.h

Go to the documentation of this file.
00001 //==============================================
00002 //  copyright: (C) 2003-2005 by Will Stokes
00003 //==============================================
00004 //  This program is free software; you can redistribute it
00005 //  and/or modify it under the terms of the GNU General
00006 //  Public License as published by the Free Software
00007 //  Foundation; either version 2 of the License, or
00008 //  (at your option) any later version.
00009 //==============================================
00010 
00011 #ifndef BACKEND_RECENTALBUMS_H
00012 #define BACKEND_RECENTALBUMS_H
00013 
00014 #include <qstringlist.h>
00015 
00016 //--------------------
00017 //forward declarations
00018 //--------------------
00019 
00020 //=====================================
00024 //=====================================
00025 
00026 class RecentAlbums
00027 {
00028 //------------------------------------------------------
00029 public:
00030   //constructs a recent albums object
00031   RecentAlbums();
00032   
00033   //clears listing of recent albums
00034   void clearList();
00035 
00036   //returns the number of entries in the listing
00037   int numEntries();
00038   
00039   //retunrs the max number of entries the listing will support
00040   int getMaxItems();
00041   
00042   //obtains entry from index
00043   void getEntry ( int index, QString& name, 
00044                   QString& location, QString& photoCount );
00045 
00046   //inserts an album to the list, removes prior refferences if they 
00047   //exists. if too many items are in list last item is removed.
00048   void insertEntry ( QString name, 
00049                      QString location, 
00050                      QString photos = "-1",
00051                      bool insertAtBack = true );
00052   //------------------------------------------------------
00053 private:
00055   QStringList albumNames;
00056   QStringList albumLocations;
00057   QStringList albumPhotoCounts;
00058   
00060   uint maxItems;
00061 //------------------------------------------------------
00062 };
00063 
00064 #endif //BACKEND_RECENTALBUMS_H

Generated on Wed May 4 11:10:13 2005 for AlbumShaper by  doxygen 1.3.9.1