00001 // 00002 // Copyright (c) 2009-2009 HIIT and Tero Hasu 00003 // Copyright (c) 2007-2009 Google Inc. 00004 // Copyright (c) 2006-2007 Jaiku Ltd. 00005 // Copyright (c) 2002-2006 Mika Raento and Renaud Petit 00006 // 00007 // This software is licensed at your choice under either 1 or 2 below. 00008 // 00009 // 1. MIT License 00010 // 00011 // Permission is hereby granted, free of charge, to any person obtaining a copy 00012 // of this software and associated documentation files (the "Software"), to deal 00013 // in the Software without restriction, including without limitation the rights 00014 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00015 // copies of the Software, and to permit persons to whom the Software is 00016 // furnished to do so, subject to the following conditions: 00017 // 00018 // The above copyright notice and this permission notice shall be included in 00019 // all copies or substantial portions of the Software. 00020 // 00021 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00022 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00023 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00024 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00025 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00026 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00027 // THE SOFTWARE. 00028 // 00029 // 2. Gnu General Public license 2.0 00030 // 00031 // This program is free software; you can redistribute it and/or 00032 // modify it under the terms of the GNU General Public License 00033 // as published by the Free Software Foundation; either version 2 00034 // of the License, or (at your option) any later version. 00035 // 00036 // This program is distributed in the hope that it will be useful, 00037 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00038 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00039 // GNU General Public License for more details. 00040 // 00041 // You should have received a copy of the GNU General Public License 00042 // along with this program; if not, write to the Free Software 00043 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00044 // 00045 00046 #ifndef __ut_diskspace_epoc_hpp__ 00047 #define __ut_diskspace_epoc_hpp__ 00048 00049 #if defined(__EPOC32__) 00050 00051 #include <e32std.h> 00052 #include <f32file.h> // RFs 00053 00054 class MDiskSpace { 00055 public: 00056 virtual void DiskSpaceNotify(TInt aDrive, TInt errCode) = 0; 00057 }; 00058 00059 NONSHARABLE_CLASS(CDiskSpaceNotifier) : public CActive 00060 { 00061 public: 00062 static CDiskSpaceNotifier* NewL(RFs& fs, TInt aDrive, MDiskSpace* aNotifier, TInt64 aThreshold); 00063 ~CDiskSpaceNotifier(); 00064 00065 private: 00066 CDiskSpaceNotifier(RFs& fs, TInt aDrive, MDiskSpace* aNotifier, TInt64 aThreshold); 00067 void ConstructL(); 00068 00069 void MakeRequest(); 00070 void RunL(); 00071 void DoCancel(); 00072 00073 private: 00074 MDiskSpace* iNotifier; 00075 RFs& iFs; 00076 TInt iDrive; 00077 TInt64 iThreshold; 00078 }; 00079 00080 #endif /* defined(__EPOC32__) */ 00081 00082 #endif /* __ut_diskspace_epoc_hpp__ */
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:57 2011 by Doxygen 1.6.1