~ubuntu-branches/ubuntu/warty/synaptic/warty

« back to all changes in this revision

Viewing changes to common/rinstallprogress.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2002-04-04 12:23:30 UTC
  • Revision ID: james.westby@ubuntu.com-20020404122330-il87fkpjajirckb2
Tags: upstream-0.16
ImportĀ upstreamĀ versionĀ 0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
#ifndef _RINSTALLPROGRESS_H_
 
4
#define _RINSTALLPROGRESS_H_
 
5
 
 
6
#include "config.h"
 
7
 
 
8
#include <pthread.h>
 
9
 
 
10
#include <apt-pkg/packagemanager.h>
 
11
 
 
12
#ifdef HAVE_RPM
 
13
# include <apt-pkg/systemfactory.h>
 
14
#endif
 
15
 
 
16
 
 
17
 
 
18
class RInstallProgress {
 
19
   static void *loop(void *data);
 
20
   
 
21
protected:
 
22
   
 
23
   int _stdout;
 
24
   int _childin;
 
25
   
 
26
   int _thread_id;
 
27
   pthread_t _thread;
 
28
 
 
29
   virtual void startUpdate() {};
 
30
   virtual void updateInterface() {};
 
31
   virtual void finishUpdate() {};
 
32
 
 
33
public:
 
34
   virtual pkgPackageManager::OrderResult start(pkgPackageManager *pm);
 
35
 
 
36
};
 
37
 
 
38
 
 
39
#endif