epoc-gps-observer.hpp

Go to the documentation of this file.
00001 #ifndef __epoc_gps_observer_hpp__
00002 #define __epoc_gps_observer_hpp__
00003 
00004 #include <e32std.h>
00005 #include <lbs.h> // link against lbs.lib
00006 
00007 #include <glib.h>
00008 
00009 // The GPS positioner class uses this interface for reporting events.
00010 NONSHARABLE_CLASS(MObserver_gps)
00011 {
00012  public:
00013   // This callback may either leave or set a GError to report an error
00014   // in the callback.
00015   // 
00016   // The implementation of this method may invoke StatusCode() on the
00017   // positioner to determine whether a position was successfully
00018   // acquired.
00019   virtual gboolean PositionerEventL(GError** error) = 0;
00020 };
00021 
00022 // The positioning module status observer uses this interface to report.
00023 NONSHARABLE_CLASS(MObserverPosMod)
00024 {
00025  public:
00026   virtual void PosModChangeL() = 0;
00027   virtual void PosModErrorL(TInt errCode) = 0;
00028   virtual void PosModLeave(TInt errCode) = 0;
00029   virtual TBool PosModIsCurrent(TPositionModuleId id) const = 0;
00030 };
00031 
00032 #endif /* __epoc_gps_observer_hpp__ */
00033 
00034 /**
00035 
00036 Copyright 2009 Helsinki Institute for Information Technology (HIIT)
00037 and the authors. All rights reserved.
00038 
00039 Authors: Tero Hasu <tero.hasu@hut.fi>
00040 
00041 Permission is hereby granted, free of charge, to any person
00042 obtaining a copy of this software and associated documentation files
00043 (the "Software"), to deal in the Software without restriction,
00044 including without limitation the rights to use, copy, modify, merge,
00045 publish, distribute, sublicense, and/or sell copies of the Software,
00046 and to permit persons to whom the Software is furnished to do so,
00047 subject to the following conditions:
00048 
00049 The above copyright notice and this permission notice shall be
00050 included in all copies or substantial portions of the Software.
00051 
00052 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00053 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00054 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00055 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
00056 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00057 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00058 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00059 SOFTWARE.
00060 
00061  **/

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:52 2011 by Doxygen 1.6.1