
NeoUpDownMeter
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This app has been designed for Neostrada users but if You have dynamic ip, it should work for You too. App keeps track of transfers (download/upload) so You may prevent limits' hits.
You can run app in two modes:
- daemon - with -d parameter
- normal - without any parameters
You can run app in daemon mode first and then in normal mode to have a look at current transfers' values.
IMPORTANT:
app depends on ifconfig, if somethings works wrong type in the console:
# ln -s /sbin/ifconfig /bin
14 years ago
1.3.2
+ transfers weren't cleanly set to zero with beginning of new month - fixed
1.3.1
+ longer timer interval in daemon mode = lower cpu load
1.3.0
+ average month transfers added
+ second unstable version released
1.1.0
+ first unstable version released
14 years ago
1.3.2
+ transfers weren't cleanly set to zero with beginning of new month - fixed
1.3.1
+ longer timer interval in daemon mode = lower cpu load
1.3.0
+ average month transfers added
+ second unstable version released
1.1.0
+ first unstable version released
gohanz
15 years ago
http://www.slacky.it/index.php?option=com_remository&Itemid=29&func=fileinfo&filecatid=794&parent=category
Report
AnotherData
15 years ago
Report
amdfanatyk
15 years ago
Report
amdfanatyk
15 years ago
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I. -I/usr/lib/qt/include -o cmeter.o cmeter.cpp
/usr/lib/qt-3.3.3/include/qapplication.h
please compare these paths.
Report
AnotherData
15 years ago
#############################################################################
# Makefile for building: NeoUpDownMeter
# Generated by qmake (1.07a) (Qt 3.3.3) on: Thu Aug 25 08:35:16 2005
# Project: NeoUpDownMeter.pro
# Template: app
# Command: $(QMAKE) -o Makefile NeoUpDownMeter.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
CXXFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I/usr/lib/qt/mkspecs/default -I. -I. -I$(QTDIR)/include
LINK = g++
LFLAGS = -Wl,-rpath,$(QTDIR)/lib
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
AR = ar cqs
RANLIB =
MOC = $(QTDIR)/bin/moc
UIC = $(QTDIR)/bin/uic
QMAKE = qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = ./
####### Files
HEADERS = cmeter.h \
frmmain.ui.h
SOURCES = cmeter.cpp \
main.cpp
OBJECTS = cmeter.o \
main.o \
frmmain.o \
frmsettings.o
FORMS = frmmain.ui \
frmsettings.ui
UICDECLS = frmmain.h \
frmsettings.h
UICIMPLS = frmmain.cpp \
frmsettings.cpp
SRCMOC = moc_frmmain.cpp \
moc_frmsettings.cpp
OBJMOC = moc_frmmain.o \
moc_frmsettings.o
DIST = NeoUpDownMeter.pro
QMAKE_TARGET = NeoUpDownMeter
DESTDIR =
TARGET = NeoUpDownMeter
first: all
####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)
mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)
$(MOC):
( cd $(QTDIR)/src/moc && $(MAKE) )
Makefile: NeoUpDownMeter.pro /usr/lib/qt/mkspecs/default/qmake.conf /usr/lib/qt/lib/libqt-mt.prl
$(QMAKE) -o Makefile NeoUpDownMeter.pro
qmake:
@$(QMAKE) -o Makefile NeoUpDownMeter.pro
dist:
@mkdir -p .tmp/NeoUpDownMeter && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/NeoUpDownMeter/ && $(COPY_FILE) --parents frmmain.ui.h .tmp/NeoUpDownMeter/ && ( cd `dirname .tmp/NeoUpDownMeter` && $(TAR) NeoUpDownMeter.tar NeoUpDownMeter && $(GZIP) NeoUpDownMeter.tar ) && $(MOVE) `dirname .tmp/NeoUpDownMeter`/NeoUpDownMeter.tar.gz . && $(DEL_FILE) -r .tmp/NeoUpDownMeter
mocclean:
-$(DEL_FILE) $(OBJMOC)
-$(DEL_FILE) $(SRCMOC)
uiclean:
-$(DEL_FILE) $(UICIMPLS) $(UICDECLS)
yaccclean:
lexclean:
clean: mocclean uiclean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET) $(TARGET)
FORCE:
####### Compile
cmeter.o: cmeter.cpp cmeter.h
main.o: main.cpp frmmain.h
frmmain.h: frmmain.ui
$(UIC) frmmain.ui -o frmmain.h
frmmain.cpp: frmmain.h frmmain.ui
$(UIC) frmmain.ui -i frmmain.h -o frmmain.cpp
frmsettings.h: frmsettings.ui
$(UIC) frmsettings.ui -o frmsettings.h
frmsettings.cpp: frmsettings.h frmsettings.ui
$(UIC) frmsettings.ui -i frmsettings.h -o frmsettings.cpp
frmmain.o: frmmain.cpp frmmain.ui.h \
frmmain.h
frmsettings.o: frmsettings.cpp frmsettings.h
moc_frmmain.o: moc_frmmain.cpp frmmain.h
moc_frmsettings.o: moc_frmsettings.cpp frmsettings.h
moc_frmmain.cpp: $(MOC) frmmain.h
$(MOC) frmmain.h -o moc_frmmain.cpp
moc_frmsettings.cpp: $(MOC) frmsettings.h
$(MOC) frmsettings.h -o moc_frmsettings.cpp
####### Install
install:
uninstall:
Report
amdfanatyk
15 years ago
INCPATH = -I/usr/lib/qt/mkspecs/default -I. -I. -I$(QTDIR)/include
that path is correct:
/usr/lib/qt-3.3.3/include
so try:
INCPATH = -I/usr/lib/qt-3.3.3/mkspecs/default -I. -I. -I$(QTDIR)/include
also check whether QTDIR variable is correct and export it if required.
Report
AnotherData
15 years ago
Report
amdfanatyk
15 years ago
/usr/lib/qt/mkspecs/default
replace qt with qt-3.3.3, then type make (only), not qmake, make because qmake overwrite Makefile; if it still won't compile check QTDIR variable; type echo $QTDIR, it should be /usr/lib/qt-3.3.3, if it isn't export it: export QTDIR="/usr/lib/qt-3.3.3".
Report
AnotherData
15 years ago
Report
amdfanatyk
15 years ago
Report
xis
15 years ago
Report
amdfanatyk
15 years ago
Report
AnotherData
15 years ago
In file included from frmmain.cpp:24:
frmmain.ui.h: In member function `void frmMain::init()':
frmmain.ui.h:81: error: `exit' undeclared (first use this function)
frmmain.ui.h:81: error: (Each undeclared identifier is reported only once for
each function it appears in.)
make: *** [frmmain.o] Error 1
Report
amdfanatyk
15 years ago
Report
AnotherData
15 years ago
Report
amdfanatyk
15 years ago
Report
AnotherData
15 years ago
Report
amdfanatyk
15 years ago
Report
AnotherData
15 years ago
/usr/lib/qt/bin/uic frmmain.ui -o frmmain.h
/usr/lib/qt/bin/uic frmsettings.ui -o frmsettings.h
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I. -I/usr/lib/qt/include -o cmeter.o cmeter.cpp
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I. -I/usr/lib/qt/include -o main.o main.cpp
/usr/lib/qt/bin/uic frmmain.ui -i frmmain.h -o frmmain.cpp
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I. -I/usr/lib/qt/include -o frmmain.o frmmain.cpp
In file included from frmmain.cpp:24:
frmmain.ui.h: In member function `void frmMain::init()':
frmmain.ui.h:81: error: `exit' undeclared (first use this function)
frmmain.ui.h:81: error: (Each undeclared identifier is reported only once for
each function it appears in.)
make: *** [frmmain.o] Error 1
and locate qapplication.h
/usr/lib/qt-3.3.3/doc/html/qapplication.html
/usr/lib/qt-3.3.3/include/qapplication.h
Report
ignoreme
15 years ago
Report
amdfanatyk
15 years ago
Report
amdfanatyk
15 years ago
Report
juancho
15 years ago
Report
amdfanatyk
15 years ago
Report
juancho
15 years ago
Report