examples/sfexamples/findme/inc/FindMeActive.h

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:  Declaration of the asynchronous class to manipulate LBS.
00015 // 
00016 // 
00017 
00018 
00019 
00020 #ifndef FINDMEACTIVE_H_
00021 #define FINDMEACTIVE_H_
00022 
00023 #include <e32base.h>
00024 #include <Lbs.h>        //Location based services API
00025 
00026 class CFindMeAppView;
00027 
00028 
00029 class CFindMeActive : public CActive
00030         {
00031         public:
00032                 // First phase constructor
00033                 static CFindMeActive* NewL(CFindMeAppView*);
00034                 
00035                 // C++ constructor
00036                 CFindMeActive();
00037                 
00038                 // Second-phase constructor
00039                 void ConstructL(CFindMeAppView*);
00040                 
00041                 // Destructor
00042                 ~CFindMeActive();
00043         
00044         private: // From CActive
00045                 // Request completion handle
00046                 void RunL();
00047                 
00048                 // Clean up a request
00049                 void DoCancel();
00050                 
00051         private:
00052                 // Member variables     
00053                 RPositionServer iPosServer;
00054                 // A pointer to our application’s view class
00055                 CFindMeAppView* iView;
00056                 // Position information holder
00057                 RPositioner iPositioner;
00058         public:
00059                 // Will be used from the view class
00060                 TPositionInfo iPositionInfo;  
00061         };
00062 
00063 #endif /*FINDMEACTIVE_H_*/

Generated by  doxygen 1.6.2