miniature:p1xells-miniature.git
7 years agoDIRTY - no idea why I cannot read QDataStream data from a QBuffer fake-tp
Michael Hasselmann [Sun, 1 Aug 2010 22:35:46 +0000 (01:35 +0300)]
DIRTY - no idea why I cannot read QDataStream data from a QBuffer

I only managed to read it when I used writeRawData on the QDS, no clue what
sockets are doing differently from buffers - both are QIODevices after all ...
Cant get rid of handing out QIODevice either. Lame interfaces.

7 years agoAdd -fake-client mode for P2P
Michael Hasselmann [Sun, 1 Aug 2010 16:49:41 +0000 (19:49 +0300)]
Add -fake-client mode for P2P

I haven't found a way yet to enable internet functionality when Miniature runs
in sbox. That is why I added the -fake-client parameter for Miniature, which
hopefully allows me to have a basic P2P check.

7 years agoMade TpGame::TubeClient an adapter of QTcpSocket
Michael Hasselmann [Sun, 1 Aug 2010 11:48:30 +0000 (14:48 +0300)]
Made TpGame::TubeClient an adapter of QTcpSocket

* src/telepathy/tptubeclient.[h|cc]: For better testability (i.e., test P2P
  even without a real remote contact), TubeClient now wraps QTcpSocket. This
  change should be transparent for most of the TpGame code.

7 years agoUpdated debian changelog, bumped version fremantle/0.1.10
Michael Hasselmann [Thu, 22 Jul 2010 06:35:38 +0000 (09:35 +0300)]
Updated debian changelog, bumped version

7 years agoUpdate .gitignore file
Alban Crequy [Tue, 13 Jul 2010 16:25:11 +0000 (17:25 +0100)]
Update .gitignore file

7 years agoFilter contacts on their capabilities: Do not show them in the contact selector if...
Alban Crequy [Tue, 13 Jul 2010 16:14:29 +0000 (17:14 +0100)]
Filter contacts on their capabilities: Do not show them in the contact selector if they cannot do telepathy stream tube of type Miniature

7 years agoRetrieve the contact name from the addressbook and display "Do you want to play chess...
Alban Crequy [Mon, 12 Jul 2010 18:51:01 +0000 (19:51 +0100)]
Retrieve the contact name from the addressbook and display "Do you want to play chess with xxx?" with that name

7 years agoUpdate copyright
Alban Crequy [Mon, 12 Jul 2010 13:06:57 +0000 (14:06 +0100)]
Update copyright

7 years agoFix crash: destroy TpApprover after finishing using it
Alban Crequy [Mon, 12 Jul 2010 11:33:21 +0000 (12:33 +0100)]
Fix crash: destroy TpApprover after finishing using it

7 years agoDisplay the name of the contact in the telepathy approver
Alban Crequy [Mon, 12 Jul 2010 11:19:45 +0000 (12:19 +0100)]
Display the name of the contact in the telepathy approver

7 years agoInclude libosso-abook-dev as build dependency for now
Michael Hasselmann [Thu, 8 Jul 2010 23:17:09 +0000 (02:17 +0300)]
Include libosso-abook-dev as build dependency for now

7 years agoUpdated debian changelog, bumped version fremantle/0.1.9-1
Michael Hasselmann [Thu, 8 Jul 2010 21:31:07 +0000 (00:31 +0300)]
Updated debian changelog, bumped version

7 years agoHide FICS button, prevent cut-off text in start screen
Michael Hasselmann [Thu, 8 Jul 2010 21:22:05 +0000 (00:22 +0300)]
Hide FICS button, prevent cut-off text in start screen

7 years agoFix debian build dependencies
Michael Hasselmann [Thu, 8 Jul 2010 20:23:52 +0000 (23:23 +0300)]
Fix debian build dependencies

7 years agoFix double-free for MMainWindow
Alban Crequy [Thu, 8 Jul 2010 16:06:09 +0000 (17:06 +0100)]
Fix double-free for MMainWindow

MPreGame is allocated on the stack and MMainWindow was part of it. MMainWindow
is automatically deleted when the window is closed so it should not be on the
stack.

7 years agoFix crashes on game abortion
Alban Crequy [Thu, 8 Jul 2010 15:21:46 +0000 (16:21 +0100)]
Fix crashes on game abortion

7 years agoShow waiting window for the remote contact
Alban Crequy [Wed, 7 Jul 2010 17:03:34 +0000 (18:03 +0100)]
Show waiting window for the remote contact

7 years agoRotate the board view only for black player
Alban Crequy [Tue, 6 Jul 2010 17:14:45 +0000 (18:14 +0100)]
Rotate the board view only for black player

7 years agoEnable board rotating. It will be used for the back player
Alban Crequy [Mon, 5 Jul 2010 17:09:20 +0000 (18:09 +0100)]
Enable board rotating. It will be used for the back player

7 years agoAvoid multiple signal-slot connections on pieces, it makes them unselectable
Alban Crequy [Mon, 5 Jul 2010 16:06:32 +0000 (17:06 +0100)]
Avoid multiple signal-slot connections on pieces, it makes them unselectable

7 years agoClose the game when the game is aborted by the remote contact
Alban Crequy [Mon, 5 Jul 2010 15:21:13 +0000 (16:21 +0100)]
Close the game when the game is aborted by the remote contact

7 years agoFix compilation problems
Alban Crequy [Mon, 5 Jul 2010 13:29:07 +0000 (14:29 +0100)]
Fix compilation problems

7 years agoFix conflict resolution
Alban Crequy [Mon, 5 Jul 2010 13:22:04 +0000 (14:22 +0100)]
Fix conflict resolution

7 years agoFix compilation warnings
Alban Crequy [Mon, 5 Jul 2010 10:36:10 +0000 (11:36 +0100)]
Fix compilation warnings

7 years agoThe telepathy handlers is now always running (same lifetime as MPreGame). This allow...
Alban Crequy [Fri, 2 Jul 2010 17:14:24 +0000 (18:14 +0100)]
The telepathy handlers is now always running (same lifetime as MPreGame). This allow to play multiple games without restarting Miniature

7 years agoRemove MGameConfig, merge the code in PreGame
Alban Crequy [Fri, 2 Jul 2010 13:43:48 +0000 (14:43 +0100)]
Remove MGameConfig, merge the code in PreGame

7 years agoFix compilation errors, do not have conditional slots
Alban Crequy [Fri, 2 Jul 2010 13:44:10 +0000 (14:44 +0100)]
Fix compilation errors, do not have conditional slots

7 years agoMade MGameLog a shared resource
Michael Hasselmann [Mon, 5 Jul 2010 06:41:28 +0000 (09:41 +0300)]
Made MGameLog a shared resource

I need to improve the lax memory management in Miniature, introducing proper
smart pointers which also communicates object ownership better. MSharedGameLog
is a first step towards this.

7 years agoCleanup of MMainWindow files
Michael Hasselmann [Sun, 4 Jul 2010 19:19:09 +0000 (22:19 +0300)]
Cleanup of MMainWindow files

If the autotools feature of conditional includes is to be meant to be used
instead of ifdefs, then this example for MMainWindow should be less confusing.

It should now be clear that the header file of MMainWindow serves as an
interface for the different implementations (not to be confused with a C++
"interface" class). The common, platform-independent parts can be put in
src/main_window.cc.

The generic/MeeGo implementation of MMainWindow is empty, as we still focus on
Maemo 5.

7 years agoRenamed MMainWindow files, for consistency
Michael Hasselmann [Sun, 4 Jul 2010 19:40:32 +0000 (22:40 +0300)]
Renamed MMainWindow files, for consistency

7 years agoDo not start the telepathy account manager when not needed
Alban Crequy [Thu, 1 Jul 2010 13:35:52 +0000 (14:35 +0100)]
Do not start the telepathy account manager when not needed

7 years agoRemove the "waiting incoming connections" dialog
Alban Crequy [Thu, 1 Jul 2010 13:00:34 +0000 (14:00 +0100)]
Remove the "waiting incoming connections" dialog

7 years agoRemove code to change telepathy account settings
Alban Crequy [Thu, 1 Jul 2010 12:52:13 +0000 (13:52 +0100)]
Remove code to change telepathy account settings

7 years agoReplace the whole board when a new move is received by a remote player
Alban Crequy [Wed, 30 Jun 2010 17:31:39 +0000 (18:31 +0100)]
Replace the whole board when a new move is received by a remote player

7 years agoRead all incoming commands from the tube instead of only one
Alban Crequy [Wed, 30 Jun 2010 17:30:27 +0000 (18:30 +0100)]
Read all incoming commands from the tube instead of only one

7 years agoDo not enable telepathy accounts
Alban Crequy [Wed, 30 Jun 2010 17:29:12 +0000 (18:29 +0100)]
Do not enable telepathy accounts

7 years agoRemove code to reverse the game
Alban Crequy [Wed, 30 Jun 2010 17:26:41 +0000 (18:26 +0100)]
Remove code to reverse the game

7 years agoUse the same model for black and white
Alban Crequy [Wed, 30 Jun 2010 17:23:16 +0000 (18:23 +0100)]
Use the same model for black and white

7 years agoInitial position rotated, not mirrored
Alban Crequy [Tue, 29 Jun 2010 16:38:32 +0000 (17:38 +0100)]
Initial position rotated, not mirrored

7 years agoMake the libosso-abook contact selector optional: if not available, it uses the one...
Alban Crequy [Tue, 29 Jun 2010 14:41:35 +0000 (15:41 +0100)]
Make the libosso-abook contact selector optional: if not available, it uses the one built-in Miniature

7 years agoUse the standard directory for D-Bus .service files, do not rely on osso-af-settings
Alban Crequy [Tue, 29 Jun 2010 14:39:48 +0000 (15:39 +0100)]
Use the standard directory for D-Bus .service files, do not rely on osso-af-settings

7 years agoClose the contact selector window when a contact is selected
Alban Crequy [Mon, 28 Jun 2010 14:24:44 +0000 (15:24 +0100)]
Close the contact selector window when a contact is selected

7 years agoUse contact selector from libosso-abook
Alban Crequy [Mon, 28 Jun 2010 14:01:05 +0000 (15:01 +0100)]
Use contact selector from libosso-abook

7 years agoDo not filter contacts on capabilities yet
Alban Crequy [Mon, 28 Jun 2010 13:54:39 +0000 (14:54 +0100)]
Do not filter contacts on capabilities yet

7 years agoAdd contact chooser from Monorail
Alban Crequy [Fri, 25 Jun 2010 14:01:37 +0000 (15:01 +0100)]
Add contact chooser from Monorail

7 years agoFix reversing fen position
Dariusz Mikulski [Mon, 28 Jun 2010 17:17:31 +0000 (19:17 +0200)]
Fix reversing fen position

7 years agoMerge configure.ac
Dariusz Mikulski [Mon, 28 Jun 2010 14:37:46 +0000 (16:37 +0200)]
Merge configure.ac

7 years agoFix libhildon pkg config
Dariusz Mikulski [Thu, 24 Jun 2010 12:43:18 +0000 (14:43 +0200)]
Fix libhildon pkg config

7 years agofix compilation on Ubuntu
Dariusz Mikulski [Thu, 24 Jun 2010 11:06:34 +0000 (13:06 +0200)]
fix compilation on Ubuntu

7 years agoAdd an hildon confirmation note "Do you want to play chess?"
Alban Crequy [Wed, 23 Jun 2010 14:44:44 +0000 (15:44 +0100)]
Add an hildon confirmation note "Do you want to play chess?"

7 years agoMiniature accepts only tube with a contact (TargetHandleType = HandleTypeContact)
Alban Crequy [Wed, 23 Jun 2010 13:21:17 +0000 (14:21 +0100)]
Miniature accepts only tube with a contact (TargetHandleType = HandleTypeContact)

7 years agoUse the Approver to accept incoming tube channels
Alban Crequy [Wed, 23 Jun 2010 13:09:28 +0000 (14:09 +0100)]
Use the Approver to accept incoming tube channels

7 years agoDo not start the main window when started with --no-ui
Alban Crequy [Tue, 22 Jun 2010 16:50:43 +0000 (17:50 +0100)]
Do not start the main window when started with --no-ui

7 years agoLet Miniature also be a static Telepathy handler and be started automatically when...
Alban Crequy [Tue, 22 Jun 2010 13:42:23 +0000 (14:42 +0100)]
Let Miniature also be a static Telepathy handler and be started automatically when requested

7 years agoMiniature still handles its tube channel
Alban Crequy [Tue, 22 Jun 2010 13:40:42 +0000 (14:40 +0100)]
Miniature still handles its tube channel

7 years agoAdd dialog box for choosing pieces color
Dariusz Mikulski [Fri, 25 Jun 2010 13:11:06 +0000 (15:11 +0200)]
Add dialog box for choosing pieces color

7 years agoFix creating channel, fix disconnecting signal
Dariusz Mikulski [Thu, 24 Jun 2010 20:02:29 +0000 (22:02 +0200)]
Fix creating channel, fix disconnecting signal

7 years agoDisable chat session
Dariusz Mikulski [Mon, 21 Jun 2010 16:38:04 +0000 (18:38 +0200)]
Disable chat session

7 years agoMove send/receiv signals and slots from tptubeclient to tpgame
Dariusz Mikulski [Mon, 21 Jun 2010 12:20:14 +0000 (14:20 +0200)]
Move send/receiv signals and slots from tptubeclient to tpgame

7 years agofix dashboard, fix pices color setup
Dariusz Mikulski [Thu, 17 Jun 2010 14:47:43 +0000 (16:47 +0200)]
fix dashboard, fix pices color setup

7 years agofix dashboard creation
Dariusz Mikulski [Thu, 17 Jun 2010 14:02:38 +0000 (16:02 +0200)]
fix dashboard creation

7 years agoAdd debug messages, fix tubes signals, add packets and packet signals/slots
Dariusz Mikulski [Thu, 17 Jun 2010 12:38:11 +0000 (14:38 +0200)]
Add debug messages, fix tubes signals, add packets and packet signals/slots

7 years agoImplementing packets structure
Dariusz Mikulski [Tue, 25 May 2010 17:09:04 +0000 (19:09 +0200)]
Implementing packets structure

7 years agoWaiting for incoming connection widget
Dariusz Mikulski [Tue, 25 May 2010 11:24:22 +0000 (13:24 +0200)]
Waiting for incoming connection widget

7 years agoAdd testing packets
Dariusz Mikulski [Fri, 21 May 2010 16:51:58 +0000 (18:51 +0200)]
Add testing packets

7 years agoAdd connected signal
Dariusz Mikulski [Fri, 21 May 2010 16:26:00 +0000 (18:26 +0200)]
Add connected signal

7 years agoMove game config to own files, change game initialization state
Dariusz Mikulski [Fri, 21 May 2010 16:06:50 +0000 (18:06 +0200)]
Move game config to own files, change game initialization state

7 years agoFix includes for maemo platform
Dariusz Mikulski [Fri, 21 May 2010 12:23:11 +0000 (14:23 +0200)]
Fix includes for maemo platform

7 years agoMissing files
Dariusz Mikulski [Fri, 21 May 2010 12:17:24 +0000 (14:17 +0200)]
Missing files

7 years agoMove MMainWindow and dbusappactivator to own files
Dariusz Mikulski [Fri, 21 May 2010 12:09:39 +0000 (14:09 +0200)]
Move MMainWindow and dbusappactivator to own files

7 years agoFix segfault
malcolm [Fri, 21 May 2010 11:57:37 +0000 (13:57 +0200)]
Fix segfault

7 years agoFix portability
Dariusz Mikulski [Fri, 21 May 2010 09:15:43 +0000 (11:15 +0200)]
Fix portability

7 years agoAdd disconnection signal, fix casting, remove debug message from text chat handler
Dariusz Mikulski [Mon, 17 May 2010 15:27:43 +0000 (17:27 +0200)]
Add disconnection signal, fix casting, remove debug message from text chat handler

7 years agoAdd more (inactive) game modes to start screen
Michael Hasselmann [Mon, 10 May 2010 00:43:56 +0000 (02:43 +0200)]
Add more (inactive) game modes to start screen

7 years agoCleanup header includes
Michael Hasselmann [Mon, 10 May 2010 19:49:37 +0000 (21:49 +0200)]
Cleanup header includes

7 years agoTP code cleanup
Michael Hasselmann [Sun, 9 May 2010 18:41:16 +0000 (20:41 +0200)]
TP code cleanup

* src/telepathy/*.[h|cc]: Moved Miniature-unrelated TP stuff to TpGame
namespace. Renamed member variables to follow Miniature coding style. Cleaned
up signal-slot connection calls. Use const refs as parameters where possible.
Started to remove the Tp* class prefix (the TpGame namespace is good enough).

(Tried to follow [1] with the cleanup)

[1] http://wiki.maemo.org/Miniature/Policies#Coding_style

7 years agoFixed creation of channel
Mateu Batle [Fri, 26 Mar 2010 23:22:28 +0000 (18:22 -0500)]
Fixed creation of channel
Clean up and remove some unused code
First test working of sending/receive hello through the channel at both ends
Missing all UI and more error checking

7 years agoAdd server and client files
Dariusz Mikulski [Fri, 26 Mar 2010 12:56:53 +0000 (13:56 +0100)]
Add server and client files

7 years agoAdded initial code for text chat with telepathy framework, classes TpTextClientHandler
Mateu Batle [Fri, 26 Mar 2010 12:16:16 +0000 (07:16 -0500)]
Added initial code for text chat with telepathy framework, classes TpTextClientHandler
and TpChatSession
Added some debug print

7 years agoAdd incoming tube
Dariusz Mikulski [Tue, 16 Mar 2010 16:44:51 +0000 (17:44 +0100)]
Add incoming tube

7 years agoAdd test implementation for outgoing tubes, some changes in tubes handler
Dariusz Mikulski [Fri, 5 Mar 2010 17:58:15 +0000 (18:58 +0100)]
Add test implementation for outgoing tubes, some changes in tubes handler

7 years agoFix portability
Dariusz Mikulski [Thu, 4 Mar 2010 17:17:54 +0000 (18:17 +0100)]
Fix portability

7 years agoRemove unnessesary includes
Dariusz Mikulski [Thu, 4 Mar 2010 16:56:00 +0000 (17:56 +0100)]
Remove unnessesary includes

7 years agoadd ifdef maemo5
Dariusz Mikulski [Thu, 4 Mar 2010 16:54:38 +0000 (17:54 +0100)]
add ifdef maemo5

7 years agoFix portability
Dariusz Mikulski [Thu, 4 Mar 2010 16:52:42 +0000 (17:52 +0100)]
Fix portability

7 years agoAdd client handler for incoming and outgoing tubes
Dariusz Mikulski [Thu, 4 Mar 2010 16:19:15 +0000 (17:19 +0100)]
Add client handler for incoming and outgoing tubes

7 years agoAdd client handler for incoming and outgoing tubes
Dariusz Mikulski [Thu, 4 Mar 2010 16:16:54 +0000 (17:16 +0100)]
Add client handler for incoming and outgoing tubes

7 years agoInclude TelepathyQt4 via pkg-config
Michael Hasselmann [Wed, 24 Feb 2010 22:20:23 +0000 (23:20 +0100)]
Include TelepathyQt4 via pkg-config

7 years agoAdd tubes client handler
Dariusz Mikulski [Thu, 25 Feb 2010 12:37:27 +0000 (13:37 +0100)]
Add tubes client handler

7 years agoCreate stream tube channel for specified account
Dariusz Mikulski [Tue, 23 Feb 2010 19:26:53 +0000 (20:26 +0100)]
Create stream tube channel for specified account

7 years agoSeparate logic and ui
Dariusz Mikulski [Fri, 19 Feb 2010 16:33:10 +0000 (17:33 +0100)]
Separate logic and ui

7 years agoAdd files to makefile
Dariusz Mikulski [Thu, 18 Feb 2010 17:48:48 +0000 (18:48 +0100)]
Add files to makefile

7 years agoSetup new p2p game, host game, join game, adding tpgame object
Dariusz Mikulski [Thu, 18 Feb 2010 17:48:00 +0000 (18:48 +0100)]
Setup new p2p game, host game, join game, adding tpgame object

7 years agoChoosing account, connection and showing contacts for account in selection dialog
Dariusz Mikulski [Mon, 19 Apr 2010 21:09:45 +0000 (00:09 +0300)]
Choosing account, connection and showing contacts for account in selection dialog

7 years agoGet connection manager
Dariusz Mikulski [Fri, 5 Feb 2010 18:14:34 +0000 (19:14 +0100)]
Get connection manager

7 years agoAdd buttons for account dialog
Dariusz Mikulski [Fri, 5 Feb 2010 15:33:29 +0000 (16:33 +0100)]
Add buttons for account dialog

7 years agoShow account names on list
Dariusz Mikulski [Tue, 2 Feb 2010 16:05:36 +0000 (17:05 +0100)]
Show account names on list

7 years agoAdd list model
Dariusz Mikulski [Tue, 2 Feb 2010 15:24:26 +0000 (16:24 +0100)]
Add list model

7 years agoAccount selection
Dariusz Mikulski [Fri, 29 Jan 2010 11:20:26 +0000 (12:20 +0100)]
Account selection

7 years agoAdd account selection dialog
Dariusz Mikulski [Wed, 27 Jan 2010 12:55:57 +0000 (13:55 +0100)]
Add account selection dialog