Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Commit

Permalink
Fixed android compilation.
Browse files Browse the repository at this point in the history
Version bump.
Fixed file size problem under windows.
Updated changelog.
  • Loading branch information
codestation committed Jun 28, 2014
1 parent ce9353e commit 36a91d7
Show file tree
Hide file tree
Showing 15 changed files with 308 additions and 192 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
qcma (0.3.3) unstable; urgency=low

* Fixed wrong file sizes under windows.
* Fixed compilation with android toolchain.

-- codestation <[email protected]> Thu, 28 Jun 2014 00:00:00 -0000

qcma (0.3.2) unstable; urgency=low

* Fixed bug with PSP savedata transfer.
Expand Down
9 changes: 7 additions & 2 deletions qcma.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
#-------------------------------------------------

TEMPLATE = subdirs
SUBDIRS = qcma_gui.pro

android {
SUBDIRS = qcma_android.pro
} else {
SUBDIRS = qcma_gui.pro
}

# Compile the headless binary only on Linux because it depends on dbus
unix:!macx {
unix:!macx:!android {
SUBDIRS += qcma_cli.pro
}

Expand Down
2 changes: 1 addition & 1 deletion qcma_cli.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include(qcma_common.pri)

QT += dbus
unix:!macx:QT += dbus

TARGET = qcma_cli

Expand Down
4 changes: 2 additions & 2 deletions qcma_common.pri
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

QT += core network sql

VERSION = 0.3.2
VERSION = 0.3.3

TEMPLATE = app

Expand Down Expand Up @@ -51,7 +51,7 @@ OTHER_FILES += \
qcma.rc

INCLUDEPATH += src/

QT_CONFIG -= no-pkg-config
RESOURCES += qcmares.qrc translations.qrc

# find packages using pkg-config
Expand Down
2 changes: 1 addition & 1 deletion rpmbuild/qcma-fedora.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name: qcma
Summary: PSVita Content Manager Assistant
License: GPL-3.0
Release: 1
Version: 0.3.2
Version: 0.3.3
URL: https://github.com/codestation/qcma
Source: https://github.com/codestation/qcma.git
Group: Productivity/File utilities
Expand Down
2 changes: 1 addition & 1 deletion rpmbuild/qcma-openSUSE.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name: qcma
Summary: PSVita Content Manager Assistant
License: GPL-3.0
Release: 1
Version: 0.3.2
Version: 0.3.3
URL: https://github.com/codestation/qcma
Source: https://github.com/codestation/qcma.git
Group: Productivity/File utilities
Expand Down
45 changes: 0 additions & 45 deletions src/androidmessage.cpp

This file was deleted.

36 changes: 0 additions & 36 deletions src/androidmessage.h

This file was deleted.

4 changes: 2 additions & 2 deletions src/cmaevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ void CmaEvent::vitaEventSendObject(vita_event_t *event, int eventId)
quint32 handle;

do {
unsigned long len = metadata->size;
quint64 len = metadata->size;
m_file = new QFile(m_db->getAbsolutePath(metadata->ohfi));

// read the file to send if it's not a directory
Expand All @@ -477,7 +477,7 @@ void CmaEvent::vitaEventSendObject(vita_event_t *event, int eventId)
}

// send the data over
qDebug("Sending %s of %lu bytes to device", metadata->name, len);
qDebug("Sending %s of %llu bytes to device", metadata->name, len);
qDebug("OHFI %d with handle 0x%08X", metadata->ohfi, parentHandle);

VitaMTP_RegisterCancelEventId(eventId);
Expand Down
1 change: 0 additions & 1 deletion src/cmaobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ void CMAObject::updateObjectSize(qint64 size)
if(parent) {
parent->updateObjectSize(size);
}
//FIXME: size should be quint64
metadata.size += size;
}

Expand Down
9 changes: 3 additions & 6 deletions src/cmautils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,11 @@

#ifdef Q_OS_WIN32
#include <windows.h>
#else
#ifndef __ANDROID__
#include <sys/statvfs.h>
#else
#elif defined Q_OS_ANDROID
#include <sys/vfs.h>
#define statvfs statfs
#define fstatvfs fstatfs
#endif
#else
#include <sys/statvfs.h>
#endif

bool getDiskSpace(const QString &dir, quint64 *free, quint64 *total)
Expand Down
Loading

0 comments on commit 36a91d7

Please sign in to comment.