deviceupdatesui/deviceupdates/inc/deviceupdatemoniter.h
changeset 42 aa33c2cb9a50
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
       
     1 /*
       
     2  * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:   Fota server update and download functionality 
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef DEVICEUPDATEMONITER_H
       
    19 #define DEVICEUPDATEMONITER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <centralrepository.h>
       
    25 #include "deviceupdatemoniterobserver.h"
       
    26 #include <e32cmn.h>
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  *  CClassName
       
    31  * 
       
    32  */
       
    33 #include <e32property.h>
       
    34 
       
    35 #define  KOmaDMAppUid   0x101F6DE5
       
    36 
       
    37 //static const TUid KOmaDMAppUid = { 0x101F6DE5 };
       
    38 
       
    39 const TUint32 KFotaServerActive = 0x0000008;
       
    40 
       
    41 
       
    42 //#include <hb/hbcore/hbsymbiandevicedialog.h>    // MDeviceMoniterObserver
       
    43 
       
    44 class  CDeviceUpdateMoniter  
       
    45         :
       
    46         public CActive
       
    47         //public MDeviceMoniterObserver
       
    48         //: public QObject, public MHbDeviceDialogObserver
       
    49     {
       
    50 public: // new functions
       
    51     static CDeviceUpdateMoniter* NewL (MDeviceMoniterObserver* aObserver);
       
    52     
       
    53     CDeviceUpdateMoniter();
       
    54     
       
    55     ~CDeviceUpdateMoniter();
       
    56     
       
    57     void StartMoniter();
       
    58     
       
    59     void ConstructL();
       
    60     
       
    61 public:
       
    62     /**
       
    63      * Handle user action
       
    64      *
       
    65      * @since   S60   v3.1
       
    66      * @param   None
       
    67      * @return  None
       
    68      */
       
    69     virtual void RunL();
       
    70 
       
    71 
       
    72      /**
       
    73      * Handle leaving Runl
       
    74      *
       
    75      * @since   S60   v3.1
       
    76      * @param   aError  error code
       
    77      * @return  Error code
       
    78      */
       
    79     virtual TInt RunError(TInt aError);
       
    80 
       
    81 
       
    82      /**
       
    83      * Handle cancel of active object
       
    84      *
       
    85      * @since   S60   v3.1
       
    86      * @param   none
       
    87      * @return  none
       
    88      */
       
    89     void DoCancel();
       
    90     
       
    91     
       
    92     TInt CancelRequest();
       
    93 
       
    94     
       
    95 private:
       
    96 
       
    97     //MDeviceMoniterObserver* iDownload;
       
    98     MDeviceMoniterObserver * iObserver;
       
    99     
       
   100     RProperty iProperty;
       
   101     
       
   102     };
       
   103 
       
   104 #endif // DEVICEUPDATEMONITER_H