Move TextTable from pkgman to libshared
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
#include <StringList.h>
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
|
||||
class TextTable {
|
||||
public:
|
||||
TextTable();
|
||||
@@ -39,4 +42,10 @@ private:
|
||||
};
|
||||
|
||||
|
||||
} // namespace BPrivate
|
||||
|
||||
|
||||
using ::BPrivate::TextTable;
|
||||
|
||||
|
||||
#endif // TEXT_TABLE_H
|
||||
@@ -17,8 +17,7 @@ BinCommand pkgman :
|
||||
JobStateListener.cpp
|
||||
PackageManager.cpp
|
||||
pkgman.cpp
|
||||
TextTable.cpp
|
||||
:
|
||||
package be
|
||||
libshared.a package be
|
||||
$(TARGET_LIBSUPC++) $(TARGET_LIBSTDC++)
|
||||
;
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
#include <set>
|
||||
|
||||
#include <package/solver/SolverPackage.h>
|
||||
#include <TextTable.h>
|
||||
|
||||
#include "Command.h"
|
||||
#include "PackageManager.h"
|
||||
#include "pkgman.h"
|
||||
#include "TextTable.h"
|
||||
|
||||
|
||||
// TODO: internationalization!
|
||||
|
||||
@@ -45,6 +45,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
ShakeTrackingFilter.cpp
|
||||
StringForRate.cpp
|
||||
StringForSize.cpp
|
||||
TextTable.cpp
|
||||
Thread.cpp
|
||||
Variant.cpp
|
||||
;
|
||||
|
||||
@@ -4,13 +4,16 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "TextTable.h"
|
||||
#include <TextTable.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
|
||||
// #pragma mark - Column
|
||||
|
||||
|
||||
@@ -272,3 +275,6 @@ TextTable::Print(int32 maxWidth)
|
||||
fputs(line.String(), stdout);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace BPrivate
|
||||
Reference in New Issue
Block a user