D11213: balooctl: Introduce list command

2018-03-13 Thread Michael Heidelbach
michaelh abandoned this revision.
michaelh added a comment.


  Superseded by D11285  and D11287 


REPOSITORY
  R293 Baloo

REVISION DETAIL
  https://phabricator.kde.org/D11213

To: michaelh, #baloo, #frameworks, smithjd
Cc: ashaposhnikov, michaelh, spoorun, nicolasfella, alexeymin


D11213: balooctl: Introduce list command

2018-03-10 Thread Michael Heidelbach
michaelh edited the summary of this revision.

REPOSITORY
  R293 Baloo

REVISION DETAIL
  https://phabricator.kde.org/D11213

To: michaelh, #baloo, #frameworks, smithjd
Cc: ashaposhnikov, michaelh, spoorun, nicolasfella, alexeymin


D11213: balooctl: Introduce list command

2018-03-10 Thread Michael Heidelbach
michaelh added inline comments.

INLINE COMMENTS

> purgelistcommand.cpp:62
> +: QString();
> +const QSharedPointer urlFilter(pattern.isEmpty() ? 
> nullptr : new QRegularExpression{pattern});
> +qDebug() << "main" 

I'm not sure, if this is correct/proper usage.

> purgelistcommand.cpp:68
> +<< "urlFilter" << urlFilter;
> +
> +auto db = globalDatabaseInstance();

Will be removed on next update.

REPOSITORY
  R293 Baloo

REVISION DETAIL
  https://phabricator.kde.org/D11213

To: michaelh, #baloo, #frameworks, smithjd
Cc: ashaposhnikov, michaelh, spoorun, nicolasfella, alexeymin


D11213: balooctl: Introduce list command

2018-03-10 Thread Michael Heidelbach
michaelh created this revision.
michaelh added reviewers: Baloo, Frameworks, smithjd.
michaelh added projects: Baloo, Frameworks.
michaelh requested review of this revision.

REVISION SUMMARY
  This command list all entries of the database. Information items are
  
  - device id
  - inode
  - url
  - file accessability
  
  The output may be filtered by
  
  - device id
  - Regular expression match of url
  - file accessability

TEST PLAN
  Running on command line.

REPOSITORY
  R293 Baloo

BRANCH
  list (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D11213

AFFECTED FILES
  src/engine/documenturldb.cpp
  src/engine/transaction.cpp
  src/engine/transaction.h
  src/tools/balooctl/CMakeLists.txt
  src/tools/balooctl/main.cpp
  src/tools/balooctl/purgelistcommand.cpp
  src/tools/balooctl/purgelistcommand.h

To: michaelh, #baloo, #frameworks, smithjd
Cc: ashaposhnikov, michaelh, spoorun, nicolasfella, alexeymin