File indexing completed on 2024-05-12 04:49:36

0001 /****************************************************************************************
0002  * Copyright (c) 2007 Leo Franchi <lfranchi@gmail.com>                                  *
0003  * Copyright (c) 2008 William Viana Soares <vianasw@gmail.com>                          *
0004  *                                                                                      *
0005  * This program is free software; you can redistribute it and/or modify it under        *
0006  * the terms of the GNU General Public License as published by the Free Software        *
0007  * Foundation; either version 2 of the License, or (at your option) any later           *
0008  * version.                                                                             *
0009  *                                                                                      *
0010  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0011  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0012  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0013  *                                                                                      *
0014  * You should have received a copy of the GNU General Public License along with         *
0015  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0016  ****************************************************************************************/
0017 
0018 /*
0019   Significant parts of this code is inspired and/or copied from KDE Plasma sources,
0020   available at kdebase/workspace/libs/plasma
0021 */
0022 
0023 #ifndef AMAROK_CONTEXT_VIEW_H
0024 #define AMAROK_CONTEXT_VIEW_H
0025 
0026 #include "context/ContextObserver.h"
0027 
0028 namespace Context
0029 {
0030 
0031 class AMAROK_EXPORT ContextView : public ContextSubject
0032 {
0033 
0034 public:
0035      ContextView();
0036     ~ContextView();
0037 
0038      /**
0039          * Singleton pattern accessor.
0040      */
0041     static ContextView* self();
0042 
0043 private:
0044     static ContextView* s_self;
0045 };
0046 
0047 } // Context namespace
0048 
0049 #endif