iaupdate/IAD/firmwareupdate/inc/iaupdatefwsyncstate.h
changeset 77 d1838696558c
parent 0 ba25891c3a9e
equal deleted inserted replaced
75:2d2d25361590 77:d1838696558c
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-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".
    89         * Get synchronization phase.
    89         * Get synchronization phase.
    90         * @param None.
    90         * @param None.
    91         * @return Synchronization phase.
    91         * @return Synchronization phase.
    92         */
    92         */
    93          TInt SyncPhase();
    93          TInt SyncPhase();
    94 
    94           
    95         /**
       
    96         * Set total sync progress.
       
    97         * @param aCount Progress count.
       
    98         * @return None.
       
    99         */
       
   100 		 void SetTotalProgress(TInt aCount);
       
   101 
       
   102         /**
       
   103         * Get total sync progress.
       
   104         * @param None. 
       
   105         * @return Progress count.
       
   106         */
       
   107 		 TInt TotalProgress();
       
   108 
       
   109         /**
       
   110         * Set sync progress.
       
   111         * @param aCount Progress count.
       
   112         * @return None.
       
   113         */
       
   114 		 void SetProgress(TInt aCount);
       
   115 
       
   116         /**
       
   117         * Increase sync progress.
       
   118         * @param None.
       
   119         * @return None.
       
   120         */
       
   121          void IncreaseProgress();
       
   122         
       
   123         /**
       
   124         * Get sync progress.
       
   125         * @param None. 
       
   126         * @return Progress count.
       
   127         */
       
   128 		 TInt Progress();
       
   129 
       
   130         /**
       
   131         * Set sync content name.
       
   132         * @param aContent Content name.
       
   133         * @return None.
       
   134         */
       
   135          void SetContent(const TDesC& aContent);
       
   136 
       
   137         /**
       
   138         * Get sync content name.
       
   139         * @param None. 
       
   140         * @return Content name.
       
   141         */
       
   142 		 const TDesC& Content();
       
   143 
       
   144         /**
       
   145         * Resets progress state.
       
   146         * @param None. 
       
   147         * @return None.
       
   148         */
       
   149 		 void ResetProgress();
       
   150 		
       
   151         /**
       
   152         * Finds out whether total progress count is known.
       
   153         * @param None. 
       
   154         * @return ETrue if total progress count is known, EFalse otherwise.
       
   155         */
       
   156 		 TBool ProgressKnown();
       
   157         
       
   158     private:
    95     private:
   159         // synchronization phase
    96         // synchronization phase
   160 		TInt iSyncPhase;
    97 		TInt iSyncPhase;
   161 
    98 
   162 		// total number of sent/received sync items
       
   163 		TInt iTotalProgressCount;
       
   164 
       
   165 		// number of sent/received sync items
       
   166 		TInt iProgressCount;
       
   167 
       
   168 		// name of the content being synced
       
   169 		TName iSyncContent;
       
   170     };
    99     };
   171 
   100 
   172 #endif  // IAUPDATEFWSYNCSTATE_H
   101 #endif  // IAUPDATEFWSYNCSTATE_H
   173 
   102 
   174 // End of File
   103 // End of File