~ubuntu-branches/ubuntu/utopic/psi/utopic

« back to all changes in this revision

Viewing changes to src/applicationinfo.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2010-02-19 09:37:12 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100219093712-e225xvm1wjcf1cgi
Tags: 0.14-2
* comment out only function which uses va_list to work around build
  problems on armel
* Set Standards-Version to 3.8.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
// Should also be overridable through an optional file.
27
27
 
28
28
#define PROG_NAME "Psi"
29
 
//#define PROG_VERSION "0.13-dev" " (" __DATE__ ")"; //CVS Builds are dated
30
 
#define PROG_VERSION "0.13";
 
29
//#define PROG_VERSION "0.14-dev" " (" __DATE__ ")"; //CVS Builds are dated
 
30
#define PROG_VERSION "0.14";
31
31
#define PROG_CAPS_NODE "http://psi-im.org/caps";
32
 
#define PROG_CAPS_VERSION "0.13-dev-rev2";
 
32
#define PROG_CAPS_VERSION "caps-b75d8d2b25";
33
33
#define PROG_IPC_NAME "org.psi-im.Psi"  // must not contain '\\' character on Windows
34
34
#define PROG_OPTIONS_NS "http://psi-im.org/options";
35
35
#define PROG_STORAGE_NS "http://psi-im.org/storage";
129
129
    const char* resourcePathCString =
130
130
      CFStringGetCStringPtr( resourcePathStringRef, kCFStringEncodingASCII );
131
131
    if ( resourcePathCString ) {
132
 
      resourcePath.setLatin1( resourcePathCString );
 
132
      resourcePath = resourcePathCString;
133
133
    } else { // CFStringGetCStringPtr failed; use fallback conversion
134
134
      CFIndex bufferLength = CFStringGetLength( resourcePathStringRef ) + 1;
135
135
      char* resourcePathCString = new char[ bufferLength ];
147
147
  // Remove the tail component of the path
148
148
  if ( ! resourcePath.isNull() ) {
149
149
    QFileInfo fileInfo( resourcePath );
150
 
    resourcePath = fileInfo.dirPath( true );
 
150
    resourcePath = fileInfo.absolutePath();
151
151
  }
152
152
  return resourcePath;
153
153
#endif
174
174
                return p;
175
175
 
176
176
#if defined(Q_WS_X11)
177
 
        QDir proghome(QDir::homeDirPath() + "/.psi");
 
177
        QDir proghome(QDir::homePath() + "/.psi");
178
178
        if(!proghome.exists()) {
179
179
                QDir home = QDir::home();
180
180
                home.mkdir(".psi");
185
185
        QString base;
186
186
 
187
187
        // Windows 9x
188
 
        if(QDir::homeDirPath() == QDir::rootDirPath())
 
188
        if(QDir::homePath() == QDir::rootPath())
189
189
                base = ".";
190
190
        // Windows NT/2K/XP variant
191
191
        else
192
 
                base = QDir::homeDirPath();
 
192
                base = QDir::homePath();
193
193
 
194
194
        // no trailing slash
195
195
        if(base.at(base.length()-1) == '/')
203
203
 
204
204
        return proghome.path();
205
205
#elif defined(Q_WS_MAC)
206
 
        QDir proghome(QDir::homeDirPath() + "/.psi");
 
206
        QDir proghome(QDir::homePath() + "/.psi");
207
207
        if(!proghome.exists()) {
208
208
                QDir home = QDir::home();
209
209
                home.mkdir(".psi");