~cyphermox/mtp/images

« back to all changes in this revision

Viewing changes to server/UbuntuMtpDatabase.h

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2013-09-11 14:40:53 UTC
  • Revision ID: mathieu-tl@ubuntu.com-20130911144053-l909kntbwpyxgqq9
Un-hardcode paths and user info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
    }
99
99
 
100
100
public:
101
 
    UbuntuMtpDatabase() : counter(1)
 
101
    UbuntuMtpDatabase(const char *dir) : counter(1)
102
102
    {
103
103
        db = std::map<MtpObjectHandle, DbEntry>();
104
 
        readFiles("/home/phablet");
 
104
        readFiles(std::string(dir));
105
105
        
106
106
        std::cout << __PRETTY_FUNCTION__ << ": object count:" << db.size() << std::endl;
107
107
    }