iaupdate/IAD/launcher/inc/iaupdatelauncherclient.h
branchRCL_3
changeset 25 7333d7932ef7
parent 0 ba25891c3a9e
child 26 8b7f4e561641
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 
    18 
    19 
    19 
    20 #ifndef IA_UPDATE_LAUNCHER_CLIENT_H
    20 #ifndef IA_UPDATE_LAUNCHER_CLIENT_H
    21 #define IA_UPDATE_LAUNCHER_CLIENT_H
    21 #define IA_UPDATE_LAUNCHER_CLIENT_H
       
    22 #include <QObject>
    22 
    23 
    23 #include <AknServerApp.h> 
    24 class XQServiceRequest;
    24 #include <e32std.h>
       
    25 
    25 
    26 /**
    26 //class IAUpdateLauncherClient 
    27  *  
    27 class IAUpdateLauncherClient : public QObject
    28  */
    28 {
    29 class RIAUpdateLauncherClient : public RAknAppServiceBase 
    29      Q_OBJECT
    30     {
       
    31 
       
    32 public:
    30 public:
    33 
    31 
    34     /**
       
    35      * Constructor.
       
    36      */
       
    37      
    32      
    38      RIAUpdateLauncherClient();
    33      IAUpdateLauncherClient();
       
    34      ~IAUpdateLauncherClient();
    39 
    35 
    40     /** 
    36      void launch();
    41      * This function will crete new embedded IAUpdate instance.
       
    42      */
       
    43     TInt Open();
       
    44     
       
    45     /** 
       
    46      * Close client server connection to IAUpdate
       
    47      */
       
    48     void Close();
       
    49 
    37 
    50 
    38 protected slots:
    51     /** 
    39      void requestCompleted(const QVariant& value);
    52      * Command asks IAUpdate to show updates list
    40      void requestError(int err); 
    53      *
       
    54      * @param aStatus The status will be updated when the operation
       
    55      * has been completed.
       
    56      */
       
    57     void ShowUpdates( TBool& aRefreshFromNetworkDenied, 
       
    58                       TRequestStatus& aStatus );
       
    59     
       
    60     /** 
       
    61      * Cancel async ShowUpdates() request
       
    62      */
       
    63      void CancelAsyncRequest();
       
    64  
       
    65 public: // RAknAppServiceBase
       
    66 
       
    67     /**
       
    68      * @see RAknAppServiceBase::ServiceUid
       
    69      */
       
    70     TUid ServiceUid() const;
       
    71 
    41 
    72                                
    42                                
    73 private: //data
    43 private: 
    74 
    44 
    75      TBool iConnected;
    45      XQServiceRequest* mServiceRequest;
    76      
       
    77      TPtr8 iPtr1;
       
    78 
       
    79      };
    46      };
    80 
    47 
    81 #endif // IA_UPDATE_LAUNCHER_CLIENT_H
    48 #endif // IA_UPDATE_LAUNCHER_CLIENT_H