- Timestamp:
- 07/09/08 17:46:23 (5 months ago)
- Location:
- trunk/osd/src
- Files:
-
- 3 modified
-
licq-osd.cpp (modified) (2 diffs)
-
my_xosd.cpp (modified) (1 diff)
-
my_xosd.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/osd/src/licq-osd.cpp
r6378 r6439 2 2 // author: Martin Maurer (martinmaurer@gmx.at) 3 3 // first version 7 Apr 2003 4 5 #include <cerrno> 6 #include <cstdio> 7 #include <cstring> 8 #include <ctime> 9 #include <iconv.h> 10 #include <iostream> 11 #include <langinfo.h> 12 #include <libintl.h> 13 #include <locale.h> 14 #include <unistd.h> 4 15 5 16 #include <licq_plugin.h> … … 8 19 #include <licq_file.h> 9 20 #include <licq_log.h> 10 #include <time.h>11 #include <unistd.h>12 #include <iostream>13 #include <iconv.h>14 #include <errno.h>15 #include <locale.h>16 #include <langinfo.h>17 #include <cstdio>18 #include <cstring>19 #include <libintl.h>20 21 21 22 #include "my_xosd.h" 22 23 #include "licq_osd.conf.h" 23 24 25 using namespace std; 26 24 27 //#if CVSLICQ==1 25 28 //#warning compiling for licq>=1.2.8 -
trunk/osd/src/my_xosd.cpp
r4639 r6439 4 4 5 5 #include "my_xosd.h" 6 #include <string> 7 #include <unistd.h> 6 8 7 #include <iostream> 9 8 #include <libintl.h> 10 9 #include <sstream> 10 #include <string> 11 #include <unistd.h> 11 12 #define _(String) gettext (String) 13 14 using namespace std; 12 15 13 16 extern void log(int mode, const char *message); -
trunk/osd/src/my_xosd.h
r4639 r6439 6 6 #define my_xosd_h 7 7 8 #include <xosd.h>9 8 #include <string> 10 9 11 using namespace std; 10 #include <xosd.h> 12 11 13 int my_xosd_init(st ring font, // font which should be used (in xfontsel form)14 string colour, // colour of OSD (as in Xfree86's rgb.txt)12 int my_xosd_init(std::string font, // font which should be used (in xfontsel form) 13 std::string colour, // colour of OSD (as in Xfree86's rgb.txt) 15 14 unsigned long hoffset, // offset from left/right of screen 16 15 unsigned long voffset, // offset from top/bottom of screen 17 string vpos, // vertical position = top, bottom18 string hpos, // horizontal position = left, right16 std::string vpos, // vertical position = top, bottom 17 std::string hpos, // horizontal position = left, right 19 18 unsigned long timeout, // how long to display a message 20 19 unsigned long delaypercharacter, … … 24 23 unsigned long shadowoffset, 25 24 unsigned long outlineoffset, 26 string shadowcolour,27 string outlinecolour25 std::string shadowcolour, 26 std::string outlinecolour 28 27 ); 29 28 int my_xosd_exit(); … … 35 34 // intended - that only works correctly if the chosen font is 36 35 // fixed width 37 int my_xosd_display(st ring username, string message,string colour = "");36 int my_xosd_display(std::string username, std::string message, std::string colour = ""); 38 37 39 38 // Maximum length of each line in OSD
