~ubuntu-branches/ubuntu/feisty/photoprint/feisty

« back to all changes in this revision

Viewing changes to profilemanager/test.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2006-09-29 12:18:16 UTC
  • Revision ID: james.westby@ubuntu.com-20060929121816-6t2iz9zaymixd3om
Tags: upstream-0.3.3
ImportĀ upstreamĀ versionĀ 0.3.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <iostream>
 
2
 
 
3
#include "profilemanager.h"
 
4
#include "../support/configdb.h"
 
5
 
 
6
using namespace std;
 
7
 
 
8
int main(int argc,char **argv)
 
9
{
 
10
        ConfigFile f;
 
11
        ProfileManager pm(&f,"[Colour Management]");
 
12
        pm.AddPath("$HOME/.color/icc");
 
13
 
 
14
        const char *fn=NULL;
 
15
        while(fn=pm.GetNextFilename(fn))
 
16
        {
 
17
                cerr << fn << endl;     
 
18
        }
 
19
 
 
20
        int c=pm.GetIntentCount();
 
21
        cerr << c << " intents available" << endl;
 
22
        for(int i=-1;i<c;++i)
 
23
        {
 
24
                cerr << "Intent " << i << ": " << pm.GetIntentName(i) << endl;
 
25
                cerr << pm.GetIntentDescription(i) << endl;
 
26
        }
 
27
 
 
28
        return(0);
 
29
}