art_bitmap.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * art_bitmap.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2010 the VideoLAN team
00005  * $Id: a45f30142a005a8014aa31a765d8bdcb4c1fe0e1 $
00006  *
00007  * Author: Erwan Tulou      <erwan10@vidoelan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License along
00020  * with this program; if not, write to the Free Software Foundation, Inc.,
00021  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef ART_BITMAP_HPP
00025 #define ART_BITMAP_HPP
00026 
00027 #include "file_bitmap.hpp"
00028 #include <string>
00029 #include <list>
00030 
00031 
00032 /// Class for art bitmaps
00033 class ArtBitmap: public FileBitmap
00034 {
00035 public:
00036 
00037     static ArtBitmap* getArtBitmap( string uriName );
00038     static void initArtBitmap( intf_thread_t* pIntf );
00039     static void freeArtBitmap( );
00040 
00041     string getUriName() { return m_uriName; }
00042 
00043 protected:
00044 
00045     /// Constructor/destructor
00046     ArtBitmap( string uriName );
00047     virtual ~ArtBitmap() {}
00048 
00049     /// skins2 interface
00050     static intf_thread_t *m_pIntf;
00051 
00052     /// Image handler (used to load art files)
00053     static image_handler_t *m_pImageHandler;
00054 
00055     // keep a cache of art already open
00056     static list<ArtBitmap*> m_listBitmap;
00057 
00058 private:
00059 
00060     // uriName
00061     string m_uriName;
00062 
00063 };
00064 
00065 
00066 #endif

Generated on Tue May 25 08:04:58 2010 for VLC by  doxygen 1.5.6