Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
sound test
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/justin/tmp/tmp/svn/neatstuff/trunk@27 972056c0-ec0e-4c9f-ad5b-9eb1d9b6bad5
  • Loading branch information
mblsha committed Jul 2, 2003
1 parent cd842d8 commit e7db345
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 24 deletions.
25 changes: 25 additions & 0 deletions test/main.cpp
Expand Up @@ -18,11 +18,31 @@
#include <qdir.h>
#include <qptrlist.h>

class SoundPlayer : public QObject
{
Q_OBJECT
public:
SoundPlayer()
: QObject(qApp, "SoundPlayer")
{
QDir tmp;
tmp.mkdir("tmp");
Iconset::setSoundPrefs("tmp", this, SLOT(playSound(QString)));
}

public slots:
void playSound(QString file)
{
qWarning("SoundPlayer::playSound(\"%s\")", file.latin1());
}
};

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

initPsiPngIO();
new SoundPlayer();

QPtrList<Iconset> isList;
isList.setAutoDelete(true);
Expand All @@ -41,6 +61,9 @@ int main(int argc, char *argv[])
isList.append ( is );
}

// test sound playing
IconsetFactory::icon("blah/test").activated();

/*
qWarning("Registered icons:");
QStringList list = IconsetFactory::icons();
Expand Down Expand Up @@ -117,3 +140,5 @@ int main(int argc, char *argv[])

return ret;
}

#include "main.moc"
36 changes: 12 additions & 24 deletions test/main.pro
Expand Up @@ -6,30 +6,6 @@ SOURCES += \
main.cpp
#HEADERS += \

# iconset
#SOURCES += \
# iconset.cpp \
# psipng.cpp \
# anim.cpp
#HEADERS += \
# iconset.h \
# psipng.h \
# anim.h

# Required widgets
#SOURCES += \
# fancylabel.cpp \
# busywidget.cpp \
# psitextview.cpp \
# iconwidget.cpp \
# iconselect.cpp
#HEADERS += \
# fancylabel.h \
# busywidget.h \
# psitextview.h \
# iconwidget.h \
# iconselect.h

# misc
SOURCES += \
zip.cpp \
Expand Down Expand Up @@ -62,3 +38,15 @@ include($$ICONSET_CPP/iconset.pri)
INCLUDEPATH += ../misc
VPATH += ../misc


PSICS_CPP = ../../cutestuff
INCLUDEPATH += \
$$PSICS_CPP/util

HEADERS += \
$$PSICS_CPP/util/base64.h \
$$PSICS_CPP/util/sha1.h

SOURCES += \
$$PSICS_CPP/util/base64.cpp \
$$PSICS_CPP/util/sha1.cpp

0 comments on commit e7db345

Please sign in to comment.