File indexing completed on 2024-05-12 04:49:36
0001 /**************************************************************************************** 0002 * Copyright (c) 2007-2008 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/plasma 0021 */ 0022 0023 #include "ContextView.h" 0024 #include <QDebug> 0025 0026 namespace Context 0027 { 0028 0029 ContextView* ContextView::s_self = 0; 0030 0031 0032 ContextView::ContextView() 0033 { 0034 qDebug() << "=============================youhou========================================="; 0035 } 0036 0037 ContextView::~ContextView() 0038 {} 0039 0040 ContextView* ContextView::self() 0041 { 0042 if( !s_self ) s_self = new ContextView(); 0043 return s_self; 0044 } 0045 0046 } // Context namespace