00001 /******************************************************************************* 00002 00003 Copyright (C) 2007 by Brendon Costa 00004 00005 This library is free software; you can redistribute it and/or modify 00006 it under the terms of the "LGPL Like" License defined in the file COPYING 00007 that should have been distributed along with this source. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 You should have received a copy of the "LGPL Like" License 00014 along with this library; see the file COPYING. if not, it can be 00015 obtained from the EDoc++ website: 00016 http://edoc.sourceforge.net/license.html 00017 00018 *******************************************************************************/ 00019 #include "config.h" 00020 00021 #include "EDoc/NotificationIFace.h" 00022 00023 namespace EDoc 00024 { 00025 //=========================================================================== 00026 static NotificationIFace* global_notifier = NULL; 00027 //=========================================================================== 00028 void SetGlobalNotifier(NotificationIFace* gn) 00029 { 00030 global_notifier = gn; 00031 } 00032 //=========================================================================== 00033 NotificationIFace* GetGlobalNotifier() 00034 { 00035 return global_notifier; 00036 } 00037 //=========================================================================== 00038 NotificationIFace* GetGlobalNotifierAssert() 00039 { 00040 EDOC_ASSERT(global_notifier, ""); 00041 return global_notifier; 00042 } 00043 //=========================================================================== 00044 } 00045