src/ext/iad_client/inc/iaupdateclientapp.h
changeset 0 ca70ae20a155
equal deleted inserted replaced
-1:000000000000 0:ca70ae20a155
       
     1 /* Copyright (c) 2009 Nokia Corporation
       
     2  *
       
     3  * Licensed under the Apache License, Version 2.0 (the "License");
       
     4  * you may not use this file except in compliance with the License.
       
     5  * You may obtain a copy of the License at
       
     6  *
       
     7  *     http://www.apache.org/licenses/LICENSE-2.0
       
     8  *
       
     9  * Unless required by applicable law or agreed to in writing, software
       
    10  * distributed under the License is distributed on an "AS IS" BASIS,
       
    11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    12  * See the License for the specific language governing permissions and
       
    13  * limitations under the License.
       
    14  */
       
    15 
       
    16 #ifndef IAUPDATECLIENTAPP_H_
       
    17 #define IAUPDATECLIENTAPP_H_
       
    18 
       
    19 #include <f32file.h>
       
    20 #include <iaupdate.h>
       
    21 #include <iaupdateobserver.h>
       
    22 #include <iaupdateparameters.h>
       
    23 #include <iaupdateresult.h>
       
    24 
       
    25 NONSHARABLE_CLASS(CIAUpdateClientApp) : public CActive, public MIAUpdateObserver
       
    26 {
       
    27 public:
       
    28     CIAUpdateClientApp():CActive(CActive::EPriorityStandard){;}
       
    29     static CIAUpdateClientApp* NewL();
       
    30     void ConstructL();
       
    31     ~CIAUpdateClientApp();
       
    32     void RunL(){;}
       
    33     void DoCancel(){;}
       
    34 public: // MIAUpdateObserve
       
    35     void CheckUpdates();
       
    36     virtual void CheckUpdatesComplete(TInt aErrorCode, TInt aAvailableUpdates);
       
    37     virtual void UpdateComplete(TInt aErrorCode,
       
    38                                 CIAUpdateResult* aResultDetails);
       
    39     void UpdateQueryComplete(TInt aErrorCode, TBool aUpdateNow){;}
       
    40 private:
       
    41     CIAUpdate* iUpdate;
       
    42     CIAUpdateParameters* iParameters;
       
    43     CActiveSchedulerWait iWait;
       
    44     TBool forcefulUpdate;
       
    45 };
       
    46 
       
    47 IMPORT_C void IADClientUpdate();
       
    48 
       
    49 #endif /*IAUPDATECLIENTAPP_H_*/